| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/system/power/power_supply_status.h" | 12 #include "ash/system/power/power_supply_status.h" |
| 13 #include "ash/system/user/login_status.h" | 13 #include "ash/system/user/login_status.h" |
| 14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
| 15 #include "base/i18n/time_formatting.h" | 15 #include "base/i18n/time_formatting.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/string16.h" | 17 #include "base/string16.h" |
| 18 #include "base/time.h" |
| 18 #include "ui/gfx/image/image_skia.h" | 19 #include "ui/gfx/image/image_skia.h" |
| 19 | 20 |
| 20 namespace ash { | 21 namespace ash { |
| 21 | 22 |
| 22 struct ASH_EXPORT NetworkIconInfo { | 23 struct ASH_EXPORT NetworkIconInfo { |
| 23 NetworkIconInfo(); | 24 NetworkIconInfo(); |
| 24 ~NetworkIconInfo(); | 25 ~NetworkIconInfo(); |
| 25 | 26 |
| 26 bool connecting; | 27 bool connecting; |
| 27 bool connected; | 28 bool connected; |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 // Shows UI for changing proxy settings. | 293 // Shows UI for changing proxy settings. |
| 293 virtual void ChangeProxySettings() = 0; | 294 virtual void ChangeProxySettings() = 0; |
| 294 | 295 |
| 295 // Returns VolumeControlDelegate. | 296 // Returns VolumeControlDelegate. |
| 296 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0; | 297 virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0; |
| 297 | 298 |
| 298 // Sets VolumeControlDelegate. | 299 // Sets VolumeControlDelegate. |
| 299 virtual void SetVolumeControlDelegate( | 300 virtual void SetVolumeControlDelegate( |
| 300 scoped_ptr<VolumeControlDelegate> delegate) = 0; | 301 scoped_ptr<VolumeControlDelegate> delegate) = 0; |
| 301 | 302 |
| 303 // Returns the session start time, or a zero base::Time if no session start |
| 304 // time is set. |
| 305 virtual base::Time GetSessionStartTime() = 0; |
| 306 |
| 307 // Returns the session length limit, or a zero base::TimeDelta if no session |
| 308 // length limit is set. |
| 309 virtual base::TimeDelta GetSessionLengthLimit() = 0; |
| 310 |
| 302 // Creates a dummy delegate for testing. | 311 // Creates a dummy delegate for testing. |
| 303 static SystemTrayDelegate* CreateDummyDelegate(); | 312 static SystemTrayDelegate* CreateDummyDelegate(); |
| 304 }; | 313 }; |
| 305 | 314 |
| 306 } // namespace ash | 315 } // namespace ash |
| 307 | 316 |
| 308 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ | 317 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |