Chromium Code Reviews| 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..cb39f409b458925a1dffcfae3a82faf8916f128a 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. |
| + // When the tablet_mode switch is on we force maximize mode no matter what the |
| + // lid angle is. |
| + bool force_maximize_mode_; |
|
jonross
2016/06/03 03:27:19
We have ways to forcibly trigger maximize mode, an
jcliang
2016/06/03 05:28:49
Do you mean switches::kAshEnableTouchViewTesting?
jonross
2016/06/03 16:27:24
Yeah we can't use the switch here, I was just brin
|
| +#endif |
| + |
| // Tracks when the lid is closed. Used to prevent entering maximize mode. |
| bool lid_is_closed_; |