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

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

Issue 2373863002: mustash: Connect ash system tray "show settings" items to chrome over 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 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 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ 5 #ifndef ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ 6 #define ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
7 7
8 #include "ash/common/system/tray/default_system_tray_delegate.h" 8 #include "ash/common/system/tray/default_system_tray_delegate.h"
9 #include "ash/public/interfaces/system_tray.mojom.h" 9 #include "ash/public/interfaces/system_tray.mojom.h"
10 #include "base/i18n/time_formatting.h" 10 #include "base/i18n/time_formatting.h"
(...skipping 20 matching lines...) Expand all
31 31
32 private: 32 private:
33 // Connects or reconnects the |system_tray_client_| interface. 33 // Connects or reconnects the |system_tray_client_| interface.
34 void ConnectToSystemTrayClient(); 34 void ConnectToSystemTrayClient();
35 35
36 // Handles errors on the |system_tray_client_| interface connection. 36 // Handles errors on the |system_tray_client_| interface connection.
37 void OnClientConnectionError(); 37 void OnClientConnectionError();
38 38
39 // SystemTrayDelegate: 39 // SystemTrayDelegate:
40 base::HourClockType GetHourClockType() const override; 40 base::HourClockType GetHourClockType() const override;
41 void ShowSettings() override;
41 void ShowDateSettings() override; 42 void ShowDateSettings() override;
43 void ShowNetworkSettingsForGuid(const std::string& guid) override;
44 void ShowDisplaySettings() override;
45 void ShowPowerSettings() override;
46 void ShowChromeSlow() override;
47 void ShowIMESettings() override;
48 void ShowHelp() override;
49 void ShowAccessibilityHelp() override;
50 void ShowAccessibilitySettings() override;
51 void ShowPaletteHelp() override;
52 void ShowPaletteSettings() override;
53 void ShowPublicAccountInfo() override;
54 void ShowEnterpriseInfo() override;
55 void ShowProxySettings() override;
42 56
43 // mojom::SystemTray: 57 // mojom::SystemTray:
44 void SetUse24HourClock(bool use_24_hour) override; 58 void SetUse24HourClock(bool use_24_hour) override;
45 59
46 // May be null in unit tests. 60 // May be null in unit tests.
47 shell::Connector* connector_; 61 shell::Connector* connector_;
48 62
49 // Client interface in chrome browser. 63 // Client interface in chrome browser.
50 mojom::SystemTrayClientPtr system_tray_client_; 64 mojom::SystemTrayClientPtr system_tray_client_;
51 65
52 // 12 or 24 hour display. 66 // 12 or 24 hour display.
53 base::HourClockType hour_clock_type_; 67 base::HourClockType hour_clock_type_;
54 68
55 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus); 69 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateMus);
56 }; 70 };
57 71
58 } // namespace ash 72 } // namespace ash
59 73
60 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_ 74 #endif // ASH_MUS_SYSTEM_TRAY_DELEGATE_MUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698