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

Side by Side Diff: chrome/browser/ui/ash/system_tray_client.h

Issue 2525813004: chromeos: Introduce SetClient() on ash::mojom::SystemTray interface (Closed)
Patch Set: remove logging Created 4 years 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 CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_
7 7
8 #include "ash/public/interfaces/system_tray.mojom.h" 8 #include "ash/public/interfaces/system_tray.mojom.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/chromeos/system/system_clock_observer.h" 10 #include "chrome/browser/chromeos/system/system_clock_observer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void ShowThirdPartyVpnCreate(const std::string& extension_id) override; 62 void ShowThirdPartyVpnCreate(const std::string& extension_id) override;
63 void ShowNetworkSettings(const std::string& network_id) override; 63 void ShowNetworkSettings(const std::string& network_id) override;
64 void ShowProxySettings() override; 64 void ShowProxySettings() override;
65 void SignOut() override; 65 void SignOut() override;
66 void RequestRestartForUpdate() override; 66 void RequestRestartForUpdate() override;
67 67
68 private: 68 private:
69 // chromeos::system::SystemClockObserver: 69 // chromeos::system::SystemClockObserver:
70 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; 70 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override;
71 71
72 // Connects or reconnects the |system_tray_| interface.
73 void ConnectToSystemTray();
74
75 // Handles errors on the |system_tray_| interface connection.
76 void OnClientConnectionError();
77
78 // System tray mojo service in ash. 72 // System tray mojo service in ash.
79 ash::mojom::SystemTrayPtr system_tray_; 73 ash::mojom::SystemTrayPtr system_tray_;
80 74
75 // Binds this object to the client interface.
76 mojo::Binding<ash::mojom::SystemTrayClient> binding_;
77
81 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); 78 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient);
82 }; 79 };
83 80
84 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ 81 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/chrome_interface_factory.cc ('k') | chrome/browser/ui/ash/system_tray_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698