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

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

Issue 2056823002: mash: Move SystemTrayDelegate and dependencies to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
7
8 #include <memory>
9
10 #include "ash/ash_export.h"
11 #include "ash/system/tray/system_tray_delegate.h"
12 #include "base/compiler_specific.h"
13 #include "base/macros.h"
14
15 namespace ash {
16
17 class ASH_EXPORT DefaultSystemTrayDelegate : public SystemTrayDelegate {
18 public:
19 DefaultSystemTrayDelegate();
20 ~DefaultSystemTrayDelegate() override;
21
22 // SystemTrayDelegate
23 bool GetTrayVisibilityOnStartup() override;
24 LoginStatus GetUserLoginStatus() const override;
25 std::string GetSupervisedUserManager() const override;
26 bool IsUserSupervised() const override;
27 void GetSystemUpdateInfo(UpdateInfo* info) const override;
28 bool ShouldShowSettings() override;
29 bool ShouldShowDisplayNotification() override;
30 void ToggleBluetooth() override;
31 bool IsBluetoothDiscovering() override;
32 bool GetBluetoothAvailable() override;
33 bool GetBluetoothEnabled() override;
34 bool GetBluetoothDiscovering() override;
35 VolumeControlDelegate* GetVolumeControlDelegate() const override;
36 void SetVolumeControlDelegate(
37 std::unique_ptr<VolumeControlDelegate> delegate) override;
38 int GetSystemTrayMenuWidth() override;
39
40 private:
41 bool bluetooth_enabled_;
42 std::unique_ptr<VolumeControlDelegate> volume_control_delegate_;
43
44 DISALLOW_COPY_AND_ASSIGN(DefaultSystemTrayDelegate);
45 };
46
47 } // namespace ash
48
49 #endif // ASH_SYSTEM_TRAY_DEFAULT_SYSTEM_TRAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/system/tray/default_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698