| 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_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/system/tray/system_tray_delegate.h" | 8 #include "ash/system/tray/system_tray_delegate.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 | 11 |
| 12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693. | 12 // TODO(oshima/stevenjb): Move this to ash/test. crbug.com/159693. |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 namespace test { | 15 namespace test { |
| 16 | 16 |
| 17 class TestSystemTrayDelegate : public SystemTrayDelegate { | 17 class TestSystemTrayDelegate : public SystemTrayDelegate { |
| 18 public: | 18 public: |
| 19 TestSystemTrayDelegate(); | 19 TestSystemTrayDelegate(); |
| 20 | 20 |
| 21 virtual ~TestSystemTrayDelegate(); | 21 virtual ~TestSystemTrayDelegate(); |
| 22 | 22 |
| 23 public: | 23 public: |
| 24 virtual void Initialize() OVERRIDE; | 24 virtual void Initialize() OVERRIDE; |
| 25 virtual bool GetTrayVisibilityOnStartup() OVERRIDE; | 25 virtual bool GetTrayVisibilityOnStartup() OVERRIDE; |
| 26 | 26 |
| 27 // Overridden from SystemTrayDelegate: | 27 // Overridden from SystemTrayDelegate: |
| 28 virtual SystemTrayObservers* GetSystemTrayObservers() OVERRIDE; |
| 28 virtual const string16 GetUserDisplayName() const OVERRIDE; | 29 virtual const string16 GetUserDisplayName() const OVERRIDE; |
| 29 virtual const std::string GetUserEmail() const OVERRIDE; | 30 virtual const std::string GetUserEmail() const OVERRIDE; |
| 30 virtual const gfx::ImageSkia& GetUserImage() const OVERRIDE; | 31 virtual const gfx::ImageSkia& GetUserImage() const OVERRIDE; |
| 31 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE; | 32 virtual user::LoginStatus GetUserLoginStatus() const OVERRIDE; |
| 32 virtual bool SystemShouldUpgrade() const OVERRIDE; | 33 virtual bool SystemShouldUpgrade() const OVERRIDE; |
| 33 virtual base::HourClockType GetHourClockType() const OVERRIDE; | 34 virtual base::HourClockType GetHourClockType() const OVERRIDE; |
| 34 virtual PowerSupplyStatus GetPowerSupplyStatus() const OVERRIDE; | 35 virtual PowerSupplyStatus GetPowerSupplyStatus() const OVERRIDE; |
| 35 virtual void RequestStatusUpdate() const OVERRIDE; | 36 virtual void RequestStatusUpdate() const OVERRIDE; |
| 36 virtual void ShowSettings() OVERRIDE; | 37 virtual void ShowSettings() OVERRIDE; |
| 37 virtual void ShowDateSettings() OVERRIDE; | 38 virtual void ShowDateSettings() OVERRIDE; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 gfx::ImageSkia null_image_; | 101 gfx::ImageSkia null_image_; |
| 101 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; | 102 scoped_ptr<VolumeControlDelegate> volume_control_delegate_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); | 104 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate); |
| 104 }; | 105 }; |
| 105 | 106 |
| 106 } // namespace test | 107 } // namespace test |
| 107 } // namespace ash | 108 } // namespace ash |
| 108 | 109 |
| 109 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ | 110 #endif // ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_ |
| OLD | NEW |