| 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 | 10 |
| 11 namespace ash { | 11 namespace ash { |
| 12 namespace test { | 12 namespace test { |
| 13 | 13 |
| 14 class TestShellDelegate : public ShellDelegate { | 14 class TestShellDelegate : public ShellDelegate { |
| 15 public: | 15 public: |
| 16 TestShellDelegate(); | 16 TestShellDelegate(); |
| 17 virtual ~TestShellDelegate(); | 17 virtual ~TestShellDelegate(); |
| 18 | 18 |
| 19 // Overridden from ShellDelegate: | 19 // Overridden from ShellDelegate: |
| 20 virtual bool IsUserLoggedIn() OVERRIDE; | 20 virtual bool IsUserLoggedIn() OVERRIDE; |
| 21 virtual bool IsSessionStarted() OVERRIDE; | 21 virtual bool IsSessionStarted() const OVERRIDE; |
| 22 virtual void LockScreen() OVERRIDE; | 22 virtual void LockScreen() OVERRIDE; |
| 23 virtual void UnlockScreen() OVERRIDE; | 23 virtual void UnlockScreen() OVERRIDE; |
| 24 virtual bool IsScreenLocked() const OVERRIDE; | 24 virtual bool IsScreenLocked() const OVERRIDE; |
| 25 virtual bool IsStatusAreaInitiallyVisible() const OVERRIDE; |
| 25 virtual void Shutdown() OVERRIDE; | 26 virtual void Shutdown() OVERRIDE; |
| 26 virtual void Exit() OVERRIDE; | 27 virtual void Exit() OVERRIDE; |
| 27 virtual void NewTab() OVERRIDE; | 28 virtual void NewTab() OVERRIDE; |
| 28 virtual void NewWindow(bool incognito) OVERRIDE; | 29 virtual void NewWindow(bool incognito) OVERRIDE; |
| 29 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 30 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 30 virtual void OpenCrosh() OVERRIDE; | 31 virtual void OpenCrosh() OVERRIDE; |
| 31 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 32 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| 32 virtual void RestoreTab() OVERRIDE; | 33 virtual void RestoreTab() OVERRIDE; |
| 33 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; | 34 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; |
| 34 virtual void ShowKeyboardOverlay() OVERRIDE; | 35 virtual void ShowKeyboardOverlay() OVERRIDE; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 49 bool locked_; | 50 bool locked_; |
| 50 bool spoken_feedback_enabled_; | 51 bool spoken_feedback_enabled_; |
| 51 | 52 |
| 52 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 53 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 53 }; | 54 }; |
| 54 | 55 |
| 55 } // namespace test | 56 } // namespace test |
| 56 } // namespace ash | 57 } // namespace ash |
| 57 | 58 |
| 58 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 59 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |