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

Side by Side Diff: ash/common/system/tray/default_system_tray_delegate.h

Issue 2568413002: Revert of ash: Use system tray mojo interface to show system update tray icon (Closed)
Patch Set: 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
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/system/tray/default_system_tray_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/system/tray/system_tray_delegate.h" 9 #include "ash/common/system/tray/system_tray_delegate.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate { 14 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate {
15 public: 15 public:
16 DefaultSystemTrayDelegate(); 16 DefaultSystemTrayDelegate();
17 ~DefaultSystemTrayDelegate() override; 17 ~DefaultSystemTrayDelegate() override;
18 18
19 // SystemTrayDelegate: 19 // SystemTrayDelegate:
20 LoginStatus GetUserLoginStatus() const override; 20 LoginStatus GetUserLoginStatus() const override;
21 std::string GetSupervisedUserManager() const override; 21 std::string GetSupervisedUserManager() const override;
22 bool IsUserSupervised() const override; 22 bool IsUserSupervised() const override;
23 void GetSystemUpdateInfo(UpdateInfo* info) const override;
23 bool ShouldShowSettings() const override; 24 bool ShouldShowSettings() const override;
24 bool ShouldShowNotificationTray() const override; 25 bool ShouldShowNotificationTray() const override;
25 void ToggleBluetooth() override; 26 void ToggleBluetooth() override;
26 bool IsBluetoothDiscovering() const override; 27 bool IsBluetoothDiscovering() const override;
27 bool GetBluetoothAvailable() override; 28 bool GetBluetoothAvailable() override;
28 bool GetBluetoothEnabled() override; 29 bool GetBluetoothEnabled() override;
29 bool GetBluetoothDiscovering() override; 30 bool GetBluetoothDiscovering() override;
30 int GetSystemTrayMenuWidth() override; 31 int GetSystemTrayMenuWidth() override;
31 32
32 private: 33 private:
33 bool bluetooth_enabled_; 34 bool bluetooth_enabled_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate); 36 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate);
36 }; 37 };
37 38
38 } // namespace ash 39 } // namespace ash
39 40
40 #endif // ASH_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_ 41 #endif // ASH_COMMON_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | ash/common/system/tray/default_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698