| 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/display/screen_orientation_controller_chromeos.h" | 8 #include "ash/display/screen_orientation_controller_chromeos.h" |
| 9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
| 10 #include "ash/system/tray/tray_image_item.h" | 10 #include "ash/system/tray/tray_image_item.h" |
| 11 #include "base/macros.h" |
| 11 | 12 |
| 12 namespace ash { | 13 namespace ash { |
| 13 | 14 |
| 14 namespace tray { | 15 namespace tray { |
| 15 class RotationLockDefaultView; | 16 class RotationLockDefaultView; |
| 16 } // namespace tray | 17 } // namespace tray |
| 17 | 18 |
| 18 // TrayRotationLock is a provider of views for the SystemTray. Both a tray view | 19 // TrayRotationLock is a provider of views for the SystemTray. Both a tray view |
| 19 // and a default view are provided. Each view indicates the current state of | 20 // and a default view are provided. Each view indicates the current state of |
| 20 // the rotation lock for the display which it appears on. The default view can | 21 // the rotation lock for the display which it appears on. The default view can |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 68 |
| 68 // True while added as a ShellObserver. | 69 // True while added as a ShellObserver. |
| 69 bool observing_shell_; | 70 bool observing_shell_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); | 72 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace ash | 75 } // namespace ash |
| 75 | 76 |
| 76 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ | 77 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ |
| OLD | NEW |