| 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_SHELL_DELEGATE_H_ | 5 #ifndef ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| 6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ | 6 #define ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_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 namespace ash { | 12 namespace ash { |
| 13 namespace test { | 13 namespace test { |
| 14 | 14 |
| 15 class AshTestBase; | 15 class AshTestBase; |
| 16 | 16 |
| 17 class TestShellDelegate : public ShellDelegate { | 17 class TestShellDelegate : public ShellDelegate { |
| 18 public: | 18 public: |
| 19 TestShellDelegate(); | 19 TestShellDelegate(); |
| 20 virtual ~TestShellDelegate(); | 20 virtual ~TestShellDelegate(); |
| 21 | 21 |
| 22 // Overridden from ShellDelegate: | 22 // Overridden from ShellDelegate: |
| 23 virtual bool IsUserLoggedIn() OVERRIDE; | 23 virtual bool IsUserLoggedIn() const OVERRIDE; |
| 24 virtual bool IsSessionStarted() OVERRIDE; | 24 virtual bool IsSessionStarted() OVERRIDE; |
| 25 virtual bool IsFirstRunAfterBoot() OVERRIDE; | 25 virtual bool IsFirstRunAfterBoot() OVERRIDE; |
| 26 virtual void LockScreen() OVERRIDE; | 26 virtual void LockScreen() OVERRIDE; |
| 27 virtual bool CanLockScreen() OVERRIDE; | 27 virtual bool CanLockScreen() OVERRIDE; |
| 28 virtual void UnlockScreen() OVERRIDE; | 28 virtual void UnlockScreen() OVERRIDE; |
| 29 virtual bool IsScreenLocked() const OVERRIDE; | 29 virtual bool IsScreenLocked() const OVERRIDE; |
| 30 virtual void Shutdown() OVERRIDE; | 30 virtual void Shutdown() OVERRIDE; |
| 31 virtual void Exit() OVERRIDE; | 31 virtual void Exit() OVERRIDE; |
| 32 virtual void NewTab() OVERRIDE; | 32 virtual void NewTab() OVERRIDE; |
| 33 virtual void NewWindow(bool incognito) OVERRIDE; | 33 virtual void NewWindow(bool incognito) OVERRIDE; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 scoped_ptr<content::BrowserContext> current_browser_context_; | 105 scoped_ptr<content::BrowserContext> current_browser_context_; |
| 106 | 106 |
| 107 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace test | 110 } // namespace test |
| 111 } // namespace ash | 111 } // namespace ash |
| 112 | 112 |
| 113 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 113 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |