| OLD | NEW |
| 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 "ash/system/power/power_supply_status.h" |
| 14 #include "base/i18n/time_formatting.h" | 15 #include "base/i18n/time_formatting.h" |
| 15 #include "base/string16.h" | 16 #include "base/string16.h" |
| 16 #include "third_party/skia/include/core/SkBitmap.h" | 17 #include "third_party/skia/include/core/SkBitmap.h" |
| 17 | 18 |
| 18 class SkBitmap; | 19 class SkBitmap; |
| 19 | 20 |
| 20 namespace ash { | 21 namespace ash { |
| 21 | 22 |
| 22 struct ASH_EXPORT NetworkIconInfo { | 23 struct ASH_EXPORT NetworkIconInfo { |
| 23 NetworkIconInfo(); | 24 NetworkIconInfo(); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 ~IMEInfo(); | 59 ~IMEInfo(); |
| 59 | 60 |
| 60 bool selected; | 61 bool selected; |
| 61 std::string id; | 62 std::string id; |
| 62 string16 name; | 63 string16 name; |
| 63 string16 short_name; | 64 string16 short_name; |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 typedef std::vector<IMEInfo> IMEInfoList; | 67 typedef std::vector<IMEInfo> IMEInfoList; |
| 67 | 68 |
| 68 struct PowerSupplyStatus; | |
| 69 | |
| 70 class SystemTrayDelegate { | 69 class SystemTrayDelegate { |
| 71 public: | 70 public: |
| 72 virtual ~SystemTrayDelegate() {} | 71 virtual ~SystemTrayDelegate() {} |
| 73 | 72 |
| 74 // Returns true if system tray should be visible on startup. | 73 // Returns true if system tray should be visible on startup. |
| 75 virtual bool GetTrayVisibilityOnStartup() = 0; | 74 virtual bool GetTrayVisibilityOnStartup() = 0; |
| 76 | 75 |
| 77 // Gets information about the logged in user. | 76 // Gets information about the logged in user. |
| 78 virtual const std::string GetUserDisplayName() const = 0; | 77 virtual const std::string GetUserDisplayName() const = 0; |
| 79 virtual const std::string GetUserEmail() const = 0; | 78 virtual const std::string GetUserEmail() const = 0; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // Opens the top up url. | 231 // Opens the top up url. |
| 233 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; | 232 virtual void ShowCellularTopupURL(const std::string& topup_url) = 0; |
| 234 | 233 |
| 235 // Shows UI for changing proxy settings. | 234 // Shows UI for changing proxy settings. |
| 236 virtual void ChangeProxySettings() = 0; | 235 virtual void ChangeProxySettings() = 0; |
| 237 }; | 236 }; |
| 238 | 237 |
| 239 } // namespace ash | 238 } // namespace ash |
| 240 | 239 |
| 241 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 240 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |