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

Side by Side Diff: ash/system/chromeos/rotation/tray_rotation_lock.h

Issue 2526333002: ash: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase Created 4 years 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 unified diff | Download patch
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.h ('k') | ash/system/chromeos/screen_layout_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 namespace tray {
16 class RotationLockDefaultView;
17 } // namespace tray
18
19 // TrayRotationLock is a provider of views for the SystemTray. Both a tray view 15 // TrayRotationLock is a provider of views for the SystemTray. Both a tray view
20 // and a default view are provided. Each view indicates the current state of 16 // and a default view are provided. Each view indicates the current state of
21 // the rotation lock for the display which it appears on. The default view can 17 // the rotation lock for the display which it appears on. The default view can
22 // be interacted with, it toggles the state of the rotation lock. 18 // be interacted with, it toggles the state of the rotation lock.
23 // TrayRotationLock is only available on the primary display. 19 // TrayRotationLock is only available on the primary display.
24 class ASH_EXPORT TrayRotationLock 20 class ASH_EXPORT TrayRotationLock
25 : public TrayImageItem, 21 : public TrayImageItem,
26 public ScreenOrientationController::Observer, 22 public ScreenOrientationController::Observer,
27 public ShellObserver { 23 public ShellObserver {
28 public: 24 public:
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 64
69 // True while added as a ShellObserver. 65 // True while added as a ShellObserver.
70 bool observing_shell_; 66 bool observing_shell_;
71 67
72 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); 68 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock);
73 }; 69 };
74 70
75 } // namespace ash 71 } // namespace ash
76 72
77 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_ 73 #endif // ASH_SYSTEM_CHROMEOS_ROTATION_TRAY_ROTATION_LOCK_H_
OLDNEW
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.h ('k') | ash/system/chromeos/screen_layout_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698