| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ | 6 #define ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ |
| 7 | 7 |
| 8 #include "ash/common/shell_observer.h" | 8 #include "ash/common/shell_observer.h" |
| 9 #include "ash/common/system/tray/tray_image_item.h" | 9 #include "ash/common/system/tray/tray_image_item.h" |
| 10 #include "ash/display/screen_orientation_controller_chromeos.h" | 10 #include "ash/display/screen_orientation_controller_chromeos.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // locked. | 49 // locked. |
| 50 bool ShouldBeVisible(); | 50 bool ShouldBeVisible(); |
| 51 | 51 |
| 52 // True if this is owned by a SystemTray on the primary display. | 52 // True if this is owned by a SystemTray on the primary display. |
| 53 bool OnPrimaryDisplay() const; | 53 bool OnPrimaryDisplay() const; |
| 54 | 54 |
| 55 // Removes TrayRotationLock as a ScreenOrientationController::Observer if | 55 // Removes TrayRotationLock as a ScreenOrientationController::Observer if |
| 56 // currently observing. | 56 // currently observing. |
| 57 void StopObservingRotation(); | 57 void StopObservingRotation(); |
| 58 | 58 |
| 59 // Removes TrayRotationLock as a ShellObserver if currently observing. | |
| 60 void StopObservingShell(); | |
| 61 | |
| 62 // True while added as a ScreenOrientationController::Observer. | |
| 63 bool observing_rotation_; | |
| 64 | |
| 65 // True while added as a ShellObserver. | |
| 66 bool observing_shell_; | |
| 67 | |
| 68 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); | 59 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); |
| 69 }; | 60 }; |
| 70 | 61 |
| 71 } // namespace ash | 62 } // namespace ash |
| 72 | 63 |
| 73 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ | 64 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ |
| OLD | NEW |