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 TestShellDelegate : public ShellDelegate { | 15 class TestShellDelegate : public ShellDelegate { |
16 public: | 16 public: |
17 TestShellDelegate(); | 17 TestShellDelegate(); |
18 virtual ~TestShellDelegate(); | 18 virtual ~TestShellDelegate(); |
19 | 19 |
20 // Overridden from ShellDelegate: | 20 // Overridden from ShellDelegate: |
21 virtual bool IsUserLoggedIn() OVERRIDE; | 21 virtual bool IsUserLoggedIn() OVERRIDE; |
22 virtual bool IsSessionStarted() OVERRIDE; | 22 virtual bool IsSessionStarted() OVERRIDE; |
| 23 virtual bool IsFirstRunAfterBoot() OVERRIDE; |
23 virtual void LockScreen() OVERRIDE; | 24 virtual void LockScreen() OVERRIDE; |
24 virtual void UnlockScreen() OVERRIDE; | 25 virtual void UnlockScreen() OVERRIDE; |
25 virtual bool IsScreenLocked() const OVERRIDE; | 26 virtual bool IsScreenLocked() const OVERRIDE; |
26 virtual void Shutdown() OVERRIDE; | 27 virtual void Shutdown() OVERRIDE; |
27 virtual void Exit() OVERRIDE; | 28 virtual void Exit() OVERRIDE; |
28 virtual void NewTab() OVERRIDE; | 29 virtual void NewTab() OVERRIDE; |
29 virtual void NewWindow(bool incognito) OVERRIDE; | 30 virtual void NewWindow(bool incognito) OVERRIDE; |
30 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 31 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
31 virtual void OpenCrosh() OVERRIDE; | 32 virtual void OpenCrosh() OVERRIDE; |
32 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 33 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
(...skipping 25 matching lines...) Expand all Loading... |
58 bool spoken_feedback_enabled_; | 59 bool spoken_feedback_enabled_; |
59 scoped_ptr<content::BrowserContext> current_browser_context_; | 60 scoped_ptr<content::BrowserContext> current_browser_context_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace test | 65 } // namespace test |
65 } // namespace ash | 66 } // namespace ash |
66 | 67 |
67 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 68 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |