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

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

Issue 2846883006: cros: Update rotation lock UI (Closed)
Patch Set: cleanup tests Created 3 years, 7 months 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
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_ROTATION_TRAY_ROTATION_LOCK_H_ 5 #ifndef ASH_SYSTEM_ROTATION_TRAY_ROTATION_LOCK_H_
6 #define ASH_SYSTEM_ROTATION_TRAY_ROTATION_LOCK_H_ 6 #define ASH_SYSTEM_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"
(...skipping 27 matching lines...) Expand all
38 // TrayImageItem: 38 // TrayImageItem:
39 void DestroyTrayView() override; 39 void DestroyTrayView() override;
40 40
41 protected: 41 protected:
42 // TrayImageItem: 42 // TrayImageItem:
43 bool GetInitialVisibility() override; 43 bool GetInitialVisibility() override;
44 44
45 private: 45 private:
46 friend class TrayRotationLockTest; 46 friend class TrayRotationLockTest;
47 47
48 // True if |on_primary_display_|, maximize mode is enabled, and rotation is 48 // Update tray image based on whether user rotation lock is enabled.
49 // locked. 49 void UpdateTrayImage();
50
51 // True if |on_primary_display_|, maximize mode is enabled.
50 bool ShouldBeVisible(); 52 bool ShouldBeVisible();
51 53
52 // True if this is owned by a SystemTray on the primary display. 54 // True if this is owned by a SystemTray on the primary display.
53 bool OnPrimaryDisplay() const; 55 bool OnPrimaryDisplay() const;
54 56
55 // Removes TrayRotationLock as a ScreenOrientationController::Observer if 57 // Removes TrayRotationLock as a ScreenOrientationController::Observer if
56 // currently observing. 58 // currently observing.
57 void StopObservingRotation(); 59 void StopObservingRotation();
58 60
59 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock); 61 DISALLOW_COPY_AND_ASSIGN(TrayRotationLock);
60 }; 62 };
61 63
62 } // namespace ash 64 } // namespace ash
63 65
64 #endif // ASH_SYSTEM_ROTATION_TRAY_ROTATION_LOCK_H_ 66 #endif // ASH_SYSTEM_ROTATION_TRAY_ROTATION_LOCK_H_
OLDNEW
« no previous file with comments | « ash/resources/vector_icons/system_tray_rotation_lock_locked.1x.icon ('k') | ash/system/rotation/tray_rotation_lock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698