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

Unified Diff: ash/common/system/tray/system_tray_controller.cc

Issue 2395523002: chromeos: Refactor system tray "show settings" commands to use mojo (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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/tray/system_tray_controller.cc
diff --git a/ash/common/system/tray/system_tray_controller.cc b/ash/common/system/tray/system_tray_controller.cc
index 54c0216714face4f773f7518364f9b8a759e085a..15054e342add06d3de100058e76be8b65248f3fd 100644
--- a/ash/common/system/tray/system_tray_controller.cc
+++ b/ash/common/system/tray/system_tray_controller.cc
@@ -17,11 +17,71 @@ SystemTrayController::SystemTrayController(shell::Connector* connector)
SystemTrayController::~SystemTrayController() {}
+void SystemTrayController::ShowSettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowSettings();
+}
+
void SystemTrayController::ShowDateSettings() {
if (ConnectToSystemTrayClient())
system_tray_client_->ShowDateSettings();
}
+void SystemTrayController::ShowDisplaySettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowDisplaySettings();
+}
+
+void SystemTrayController::ShowPowerSettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowPowerSettings();
+}
+
+void SystemTrayController::ShowChromeSlow() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowChromeSlow();
+}
+
+void SystemTrayController::ShowIMESettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowIMESettings();
+}
+
+void SystemTrayController::ShowHelp() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowHelp();
+}
+
+void SystemTrayController::ShowAccessibilityHelp() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowAccessibilityHelp();
+}
+
+void SystemTrayController::ShowAccessibilitySettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowAccessibilitySettings();
+}
+
+void SystemTrayController::ShowPaletteHelp() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowPaletteHelp();
+}
+
+void SystemTrayController::ShowPaletteSettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowPaletteSettings();
+}
+
+void SystemTrayController::ShowPublicAccountInfo() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowPublicAccountInfo();
+}
+
+void SystemTrayController::ShowProxySettings() {
+ if (ConnectToSystemTrayClient())
+ system_tray_client_->ShowProxySettings();
+}
+
void SystemTrayController::BindRequest(mojom::SystemTrayRequest request) {
bindings_.AddBinding(this, std::move(request));
}

Powered by Google App Engine
This is Rietveld 408576698