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

Unified Diff: ash/system/chromeos/rotation/tray_rotation_lock.cc

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/chromeos/rotation/tray_rotation_lock.cc
diff --git a/ash/system/chromeos/rotation/tray_rotation_lock.cc b/ash/system/chromeos/rotation/tray_rotation_lock.cc
index 2dfad4f74d39565cc3f7de0179f0ba666c35978a..de244ff7cee6ce8a8b75890bdaba2bc0741d8fa1 100644
--- a/ash/system/chromeos/rotation/tray_rotation_lock.cc
+++ b/ash/system/chromeos/rotation/tray_rotation_lock.cc
@@ -24,8 +24,7 @@ namespace tray {
// DetailedView. This was chosen over ActionableView in order to reuse the
// layout and styling of labels and images. This allows RotationLockDefaultView
// to maintain the look of other system tray items without code duplication.
-class RotationLockDefaultView : public TrayItemMore,
- public ShellObserver {
+class RotationLockDefaultView : public TrayItemMore, public ShellObserver {
public:
explicit RotationLockDefaultView(SystemTrayItem* owner);
~RotationLockDefaultView() override;
@@ -46,8 +45,9 @@ class RotationLockDefaultView : public TrayItemMore,
RotationLockDefaultView::RotationLockDefaultView(SystemTrayItem* owner)
: TrayItemMore(owner, false) {
UpdateImage();
- SetVisible(Shell::GetInstance()->maximize_mode_controller()->
- IsMaximizeModeWindowManagerEnabled());
+ SetVisible(Shell::GetInstance()
+ ->maximize_mode_controller()
+ ->IsMaximizeModeWindowManagerEnabled());
WmShell::Get()->AddShellObserver(this);
}
@@ -79,14 +79,14 @@ void RotationLockDefaultView::UpdateImage() {
if (Shell::GetInstance()
->screen_orientation_controller()
->rotation_locked()) {
- SetImage(bundle.GetImageNamed(
- IDR_AURA_UBER_TRAY_AUTO_ROTATION_LOCKED_DARK).ToImageSkia());
+ SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_AUTO_ROTATION_LOCKED_DARK)
+ .ToImageSkia());
label = l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ROTATION_LOCK_LOCKED);
SetLabel(label);
SetAccessibleName(label);
} else {
- SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_AUTO_ROTATION_DARK).
- ToImageSkia());
+ SetImage(bundle.GetImageNamed(IDR_AURA_UBER_TRAY_AUTO_ROTATION_DARK)
+ .ToImageSkia());
label = l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ROTATION_LOCK_AUTO);
SetLabel(label);
SetAccessibleName(label);
« no previous file with comments | « ash/system/chromeos/power/video_activity_notifier.cc ('k') | ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698