Chromium Code Reviews| Index: ash/system/chromeos/rotation/tray_rotation_lock.h |
| diff --git a/ash/system/chromeos/rotation/tray_rotation_lock.h b/ash/system/chromeos/rotation/tray_rotation_lock.h |
| index 9c53e6ed268cd80c9e37f95438a7bb1eee957b4f..6bfbe7bd16597755965d57b0f7557226d89d44cd 100644 |
| --- a/ash/system/chromeos/rotation/tray_rotation_lock.h |
| +++ b/ash/system/chromeos/rotation/tray_rotation_lock.h |
| @@ -7,6 +7,7 @@ |
| #include "ash/shell_observer.h" |
| #include "ash/system/tray/tray_image_item.h" |
| +#include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| namespace ash { |
| @@ -20,11 +21,15 @@ class RotationLockDefaultView; |
| // be interacted with, it toggles the state of the rotation lock. |
| // TrayRotationLock is only available on the primary display. |
| class ASH_EXPORT TrayRotationLock : public TrayImageItem, |
| + public MaximizeModeController::Observer, |
| public ShellObserver { |
| public: |
| explicit TrayRotationLock(SystemTray* system_tray); |
| virtual ~TrayRotationLock(); |
| + // MaximizeModeController::Observer: |
| + virtual void OnRotationLockChanged(bool rotation_locked) OVERRIDE; |
| + |
| // SystemTrayItem: |
| virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; |
| @@ -42,6 +47,10 @@ class ASH_EXPORT TrayRotationLock : public TrayImageItem, |
| // True if this has been created by a SystemTray on the primary display. |
| bool on_primary_display_; |
| + // True if |on_primary_display_|, maximize mode is enabled, and rotation is |
| + // locked. |
| + bool ShouldBeVisible(); |
|
flackr
2014/05/30 00:47:24
Functions before variables: http://google-stylegui
jonross
2014/05/30 14:52:44
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); |
| }; |