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

Side by Side Diff: ash/mus/system_tray_delegate_mus.cc

Issue 2377703003: Support SystemTrayDelegate::ShowPowerSettings() in mustash (Closed)
Patch Set: Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ash/mus/system_tray_delegate_mus.h" 5 #include "ash/mus/system_tray_delegate_mus.h"
6 6
7 #include "ash/common/system/tray/system_tray_notifier.h" 7 #include "ash/common/system/tray/system_tray_notifier.h"
8 #include "ash/common/wm_shell.h" 8 #include "ash/common/wm_shell.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const std::string& guid) { 72 const std::string& guid) {
73 // http://crbug.com/647412 73 // http://crbug.com/647412
74 NOTIMPLEMENTED(); 74 NOTIMPLEMENTED();
75 } 75 }
76 76
77 void SystemTrayDelegateMus::ShowDisplaySettings() { 77 void SystemTrayDelegateMus::ShowDisplaySettings() {
78 ConnectToSystemTrayClient()->ShowDisplaySettings(); 78 ConnectToSystemTrayClient()->ShowDisplaySettings();
79 } 79 }
80 80
81 void SystemTrayDelegateMus::ShowPowerSettings() { 81 void SystemTrayDelegateMus::ShowPowerSettings() {
82 // http://crbug.com/647412 82 ConnectToSystemTrayClient()->ShowPowerSettings();
michaelpg 2016/09/28 23:09:15 does this mean power_handler.cc be updated as well
James Cook 2016/09/29 15:28:29 Yes, power_handler.cc will need to be updated to s
michaelpg 2016/09/29 17:00:51 The only reason to open Settings from the notifica
83 NOTIMPLEMENTED();
84 } 83 }
85 84
86 void SystemTrayDelegateMus::ShowChromeSlow() { 85 void SystemTrayDelegateMus::ShowChromeSlow() {
87 ConnectToSystemTrayClient()->ShowChromeSlow(); 86 ConnectToSystemTrayClient()->ShowChromeSlow();
88 } 87 }
89 88
90 void SystemTrayDelegateMus::ShowIMESettings() { 89 void SystemTrayDelegateMus::ShowIMESettings() {
91 ConnectToSystemTrayClient()->ShowIMESettings(); 90 ConnectToSystemTrayClient()->ShowIMESettings();
92 } 91 }
93 92
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 125
127 //////////////////////////////////////////////////////////////////////////////// 126 ////////////////////////////////////////////////////////////////////////////////
128 // mojom::SystemTray: 127 // mojom::SystemTray:
129 128
130 void SystemTrayDelegateMus::SetUse24HourClock(bool use_24_hour) { 129 void SystemTrayDelegateMus::SetUse24HourClock(bool use_24_hour) {
131 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock; 130 hour_clock_type_ = use_24_hour ? base::k24HourClock : base::k12HourClock;
132 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged(); 131 WmShell::Get()->system_tray_notifier()->NotifyDateFormatChanged();
133 } 132 }
134 133
135 } // namespace ash 134 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698