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

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

Issue 2381753002: Use mojo SystemTray interfaces for both mash and classic ash (Closed)
Patch Set: cleanup 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 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"
11 #include "mojo/public/cpp/bindings/binding.h" 11 #include "mojo/public/cpp/bindings/binding.h"
12 12
13 // Handles method calls delegated back to chrome from ash. Also notifies ash of 13 // Handles method calls delegated back to chrome from ash. Also notifies ash of
14 // relevant state changes in chrome. 14 // relevant state changes in chrome.
15 // REVIEWERS: This is now the only SystemClockObserver in chrome.
15 class SystemTrayClient : public ash::mojom::SystemTrayClient, 16 class SystemTrayClient : public ash::mojom::SystemTrayClient,
16 public chromeos::system::SystemClockObserver { 17 public chromeos::system::SystemClockObserver {
17 public: 18 public:
18 SystemTrayClient(); 19 SystemTrayClient();
19 ~SystemTrayClient() override; 20 ~SystemTrayClient() override;
20 21
21 static SystemTrayClient* Get(); 22 static SystemTrayClient* Get();
22 23
23 private: 24 private:
24 // Connects or reconnects the |system_tray_| interface. 25 // Connects or reconnects the |system_tray_| interface.
(...skipping 19 matching lines...) Expand all
44 // chromeos::system::SystemClockObserver: 45 // chromeos::system::SystemClockObserver:
45 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override; 46 void OnSystemClockChanged(chromeos::system::SystemClock* clock) override;
46 47
47 // System tray mojo service in ash. 48 // System tray mojo service in ash.
48 ash::mojom::SystemTrayPtr system_tray_; 49 ash::mojom::SystemTrayPtr system_tray_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient); 51 DISALLOW_COPY_AND_ASSIGN(SystemTrayClient);
51 }; 52 };
52 53
53 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_ 54 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698