Lines Matching defs:base

15 #include "base/auto_reset.h"
16 #include "base/command_line.h"
17 #include "base/metrics/histogram.h"
18 #include "base/time/default_tick_clock.h"
19 #include "base/time/tick_clock.h"
20 #include "ui/base/accelerators/accelerator.h"
55 const base::TimeDelta kLidRecentlyOpenedDuration =
56 base::TimeDelta::FromSeconds(2);
62 // the accelerometers for the base and lid approach the same values (i.e.
92 // Returns the angle between |base| and |other| in degrees.
93 float AngleBetweenVectorsInDegrees(const gfx::Vector3dF& base,
95 return acos(gfx::DotProduct(base, other) /
96 base.Length() / other.Length()) * kRadiansToDegrees;
99 // Returns the clockwise angle between |base| and |other| where |normal| is the
101 float ClockwiseAngleBetweenVectorsInDegrees(const gfx::Vector3dF& base,
104 float angle = AngleBetweenVectorsInDegrees(base, other);
105 gfx::Vector3dF cross(base);
108 // shortest angle between |base| and |other| was counterclockwise with respect
123 last_touchview_transition_time_(base::Time::Now()),
124 tick_clock_(new base::DefaultTickClock()),
146 base::AutoReset<bool> auto_ignore_display_configuration_updates(
206 // reading from the lid differs too much from the reading from the base.
257 const base::TimeTicks& time) {
269 const base::TimeDelta& sleep_duration) {
270 last_touchview_transition_time_ = base::Time::Now();
274 void MaximizeModeController::HandleHingeRotation(const gfx::Vector3dF& base,
280 gfx::Vector3dF base_flattened(base);
285 // As the hinge approaches a vertical angle, the base and lid accelerometers
293 // Compute the angle between the base and the lid.
306 last_lid_open_time_ = base::TimeTicks();
388 base::AutoReset<bool> auto_ignore_display_configuration_updates(
441 base::Time current_time = base::Time::Now();
442 base::TimeDelta delta = current_time - last_touchview_transition_time_;
469 1, base::TimeDelta::FromDays(7).InMinutes(), 50);
472 1, base::TimeDelta::FromDays(7).InMinutes(), 50);
473 base::TimeDelta total_runtime = total_touchview_time_ +
487 base::TimeTicks now = tick_clock_->NowTicks();
489 base::TimeDelta elapsed_time = now - last_lid_open_time_;
494 scoped_ptr<base::TickClock> tick_clock) {