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

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

Issue 9837075: Move power_supply_status.* from src/ash to src/chromeos (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix dependency position Created 8 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
14 #include "base/i18n/time_formatting.h" 14 #include "base/i18n/time_formatting.h"
15 #include "base/string16.h" 15 #include "base/string16.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 17
18 class SkBitmap; 18 class SkBitmap;
19 19
20 namespace chromeos {
21
22 struct PowerSupplyStatus;
23
24 } // namespace chromeos
25
20 namespace ash { 26 namespace ash {
21 27
22 struct ASH_EXPORT NetworkIconInfo { 28 struct ASH_EXPORT NetworkIconInfo {
23 NetworkIconInfo(); 29 NetworkIconInfo();
24 ~NetworkIconInfo(); 30 ~NetworkIconInfo();
25 31
26 bool highlight; 32 bool highlight;
27 SkBitmap image; 33 SkBitmap image;
28 string16 name; 34 string16 name;
29 string16 description; 35 string16 description;
(...skipping 27 matching lines...) Expand all
57 ~IMEInfo(); 63 ~IMEInfo();
58 64
59 bool selected; 65 bool selected;
60 std::string id; 66 std::string id;
61 string16 name; 67 string16 name;
62 string16 short_name; 68 string16 short_name;
63 }; 69 };
64 70
65 typedef std::vector<IMEInfo> IMEInfoList; 71 typedef std::vector<IMEInfo> IMEInfoList;
66 72
67 struct PowerSupplyStatus;
68
69 class SystemTrayDelegate { 73 class SystemTrayDelegate {
70 public: 74 public:
71 virtual ~SystemTrayDelegate() {} 75 virtual ~SystemTrayDelegate() {}
72 76
73 // Returns true if system tray should be visible on startup. 77 // Returns true if system tray should be visible on startup.
74 virtual bool GetTrayVisibilityOnStartup() = 0; 78 virtual bool GetTrayVisibilityOnStartup() = 0;
75 79
76 // Gets information about the logged in user. 80 // Gets information about the logged in user.
77 virtual const std::string GetUserDisplayName() const = 0; 81 virtual const std::string GetUserDisplayName() const = 0;
78 virtual const std::string GetUserEmail() const = 0; 82 virtual const std::string GetUserEmail() const = 0;
79 virtual const SkBitmap& GetUserImage() const = 0; 83 virtual const SkBitmap& GetUserImage() const = 0;
80 virtual user::LoginStatus GetUserLoginStatus() const = 0; 84 virtual user::LoginStatus GetUserLoginStatus() const = 0;
81 85
82 // Returns whether a system upgrade is available. 86 // Returns whether a system upgrade is available.
83 virtual bool SystemShouldUpgrade() const = 0; 87 virtual bool SystemShouldUpgrade() const = 0;
84 88
85 // Returns the resource id for the icon to show for the update notification. 89 // Returns the resource id for the icon to show for the update notification.
86 virtual int GetSystemUpdateIconResource() const = 0; 90 virtual int GetSystemUpdateIconResource() const = 0;
87 91
88 // Returns the desired hour clock type. 92 // Returns the desired hour clock type.
89 virtual base::HourClockType GetHourClockType() const = 0; 93 virtual base::HourClockType GetHourClockType() const = 0;
90 94
91 // Gets the current power supply status. 95 // Gets the current power supply status.
92 virtual PowerSupplyStatus GetPowerSupplyStatus() const = 0; 96 virtual chromeos::PowerSupplyStatus GetPowerSupplyStatus() const = 0;
93 97
94 // Shows settings. 98 // Shows settings.
95 virtual void ShowSettings() = 0; 99 virtual void ShowSettings() = 0;
96 100
97 // Shows the settings related to date, timezone etc. 101 // Shows the settings related to date, timezone etc.
98 virtual void ShowDateSettings() = 0; 102 virtual void ShowDateSettings() = 0;
99 103
100 // Shows the settings related to network. 104 // Shows the settings related to network.
101 virtual void ShowNetworkSettings() = 0; 105 virtual void ShowNetworkSettings() = 0;
102 106
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // Opens the top up url. 229 // Opens the top up url.
226 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; 230 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0;
227 231
228 // Shows UI for changing proxy settings. 232 // Shows UI for changing proxy settings.
229 virtual void ChangeProxySettings() = 0; 233 virtual void ChangeProxySettings() = 0;
230 }; 234 };
231 235
232 } // namespace ash 236 } // namespace ash
233 237
234 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ 238 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698