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

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

Issue 2020553003: Hook up TABLET_MODE switch to maximize_mode_controller (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 b761a4d3d2dbb8cec81f2930733565cfaeead67a..87ab1c9fb5653c6a5464fca85315c7f6a8132c8b 100644
--- a/ash/wm/maximize_mode/maximize_mode_controller.h
+++ b/ash/wm/maximize_mode/maximize_mode_controller.h
@@ -93,6 +93,7 @@ class ASH_EXPORT MaximizeModeController :
// PowerManagerClient::Observer:
void LidEventReceived(bool open, const base::TimeTicks& time) override;
+ void TabletModeEventReceived(bool on, const base::TimeTicks& time) override;
void SuspendImminent() override;
void SuspendDone(const base::TimeDelta& sleep_duration) override;
#endif // OS_CHROMEOS
@@ -169,6 +170,13 @@ class ASH_EXPORT MaximizeModeController :
// Source for the current time in base::TimeTicks.
std::unique_ptr<base::TickClock> tick_clock_;
+#if defined(OS_CHROMEOS)
+ // Forces maximize mode. Used along with the tablet_mode switch on Chrome OS.
Daniel Erat 2016/06/03 15:00:19 what's "tablet_mode" referring to here? if it's a
jcliang 2016/06/06 04:39:22 Done.
+ // When the tablet_mode switch is on we force maximize mode no matter what the
+ // lid angle is.
+ bool tablet_mode_;
Daniel Erat 2016/06/03 15:00:18 how about something like "tablet_mode_switch_is_on
jcliang 2016/06/06 04:39:22 Done.
+#endif
+
// Tracks when the lid is closed. Used to prevent entering maximize mode.
bool lid_is_closed_;
« no previous file with comments | « no previous file | ash/wm/maximize_mode/maximize_mode_controller.cc » ('j') | ash/wm/maximize_mode/maximize_mode_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698