Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(510)

Unified Diff: ash/wm/maximize_mode/maximize_mode_controller.h

Issue 264523002: Use centered app list position whenever virtual keyboard is allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash on Windows (check for Ash instance before use). Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/maximize_mode/maximize_mode_controller.h
diff --git a/ash/wm/maximize_mode/maximize_mode_controller.h b/ash/wm/maximize_mode/maximize_mode_controller.h
index 86e5acaa63d03122ef42bf6164c13f7eda46fd7d..a232560a425e960afa855da0a3a96573aa93315a 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -34,6 +34,11 @@ class ASH_EXPORT MaximizeModeController : public AccelerometerObserver {
rotation_locked_ = rotation_locked;
}
+ // True if it is possible to enter maximize mode in the current
+ // configuration. If this returns false, it should never be the case that
+ // maximize mode becomes enabled.
+ bool CanEnterMaximizeMode();
+
// AccelerometerObserver:
virtual void OnAccelerometerUpdated(const gfx::Vector3dF& base,
const gfx::Vector3dF& lid) OVERRIDE;
@@ -63,6 +68,9 @@ class ASH_EXPORT MaximizeModeController : public AccelerometerObserver {
// When true calls to OnAccelerometerUpdated will not rotate the display.
bool rotation_locked_;
+ // Whether we have ever seen accelerometer data.
+ bool have_seen_accelerometer_data_;
+
DISALLOW_COPY_AND_ASSIGN(MaximizeModeController);
};
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698