#include "chrome/browser/vr/elements/viewport_aware_root.h"
#include <cmath>
#include "base/numerics/angle_conversions.h"
#include "chrome/browser/vr/pose_util.h"
namespace vr {
namespace {
bool ElementHasVisibleChildren(UiElement* element) { … }
}
const float ViewportAwareRoot::kViewportRotationTriggerDegrees = …;
ViewportAwareRoot::ViewportAwareRoot() { … }
ViewportAwareRoot::~ViewportAwareRoot() = default;
bool ViewportAwareRoot::OnBeginFrame(const gfx::Transform& head_pose) { … }
bool ViewportAwareRoot::AdjustTranslation(float head_in_world_x,
float head_in_world_z,
bool did_rotate) { … }
bool ViewportAwareRoot::AdjustRotationForHeadPose(
const gfx::Vector3dF& look_at) { … }
void ViewportAwareRoot::Reset() { … }
bool ViewportAwareRoot::HasVisibleChildren() { … }
}