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 23 matching lines...) Expand all Loading... |
56 bool spoken_feedback_enabled_; | 57 bool spoken_feedback_enabled_; |
57 scoped_ptr<content::BrowserContext> current_browser_context_; | 58 scoped_ptr<content::BrowserContext> current_browser_context_; |
58 | 59 |
59 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 60 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
60 }; | 61 }; |
61 | 62 |
62 } // namespace test | 63 } // namespace test |
63 } // namespace ash | 64 } // namespace ash |
64 | 65 |
65 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 66 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |