| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ash/media_delegate.h" | 10 #include "ash/media_delegate.h" |
| 11 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
| 12 #include "ash/test/test_session_state_delegate.h" | 12 #include "ash/test/test_session_state_delegate.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
| 16 | 16 |
| 17 namespace keyboard { | 17 namespace keyboard { |
| 18 class KeyboardControllerProxy; | 18 class KeyboardUI; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace ash { | 21 namespace ash { |
| 22 namespace test { | 22 namespace test { |
| 23 | 23 |
| 24 class TestShellDelegate : public ShellDelegate { | 24 class TestShellDelegate : public ShellDelegate { |
| 25 public: | 25 public: |
| 26 TestShellDelegate(); | 26 TestShellDelegate(); |
| 27 ~TestShellDelegate() override; | 27 ~TestShellDelegate() override; |
| 28 | 28 |
| 29 void set_multi_profiles_enabled(bool multi_profiles_enabled) { | 29 void set_multi_profiles_enabled(bool multi_profiles_enabled) { |
| 30 multi_profiles_enabled_ = multi_profiles_enabled; | 30 multi_profiles_enabled_ = multi_profiles_enabled; |
| 31 } | 31 } |
| 32 | 32 |
| 33 // Overridden from ShellDelegate: | 33 // Overridden from ShellDelegate: |
| 34 bool IsFirstRunAfterBoot() const override; | 34 bool IsFirstRunAfterBoot() const override; |
| 35 bool IsIncognitoAllowed() const override; | 35 bool IsIncognitoAllowed() const override; |
| 36 bool IsMultiProfilesEnabled() const override; | 36 bool IsMultiProfilesEnabled() const override; |
| 37 bool IsRunningInForcedAppMode() const override; | 37 bool IsRunningInForcedAppMode() const override; |
| 38 bool IsMultiAccountEnabled() const override; | 38 bool IsMultiAccountEnabled() const override; |
| 39 bool CanShowWindowForUser(aura::Window* window) const override; | 39 bool CanShowWindowForUser(aura::Window* window) const override; |
| 40 bool IsForceMaximizeOnFirstRun() const override; | 40 bool IsForceMaximizeOnFirstRun() const override; |
| 41 void PreInit() override; | 41 void PreInit() override; |
| 42 void PreShutdown() override; | 42 void PreShutdown() override; |
| 43 void Exit() override; | 43 void Exit() override; |
| 44 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; | 44 keyboard::KeyboardUI* CreateKeyboardUI() override; |
| 45 void VirtualKeyboardActivated(bool activated) override; | 45 void VirtualKeyboardActivated(bool activated) override; |
| 46 void AddVirtualKeyboardStateObserver( | 46 void AddVirtualKeyboardStateObserver( |
| 47 VirtualKeyboardStateObserver* observer) override; | 47 VirtualKeyboardStateObserver* observer) override; |
| 48 void RemoveVirtualKeyboardStateObserver( | 48 void RemoveVirtualKeyboardStateObserver( |
| 49 VirtualKeyboardStateObserver* observer) override; | 49 VirtualKeyboardStateObserver* observer) override; |
| 50 app_list::AppListViewDelegate* GetAppListViewDelegate() override; | 50 app_list::AppListViewDelegate* GetAppListViewDelegate() override; |
| 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; | 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; |
| 52 SystemTrayDelegate* CreateSystemTrayDelegate() override; | 52 SystemTrayDelegate* CreateSystemTrayDelegate() override; |
| 53 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; | 53 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; |
| 54 TestSessionStateDelegate* CreateSessionStateDelegate() override; | 54 TestSessionStateDelegate* CreateSessionStateDelegate() override; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 | 81 |
| 82 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. | 82 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 84 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace test | 87 } // namespace test |
| 88 } // namespace ash | 88 } // namespace ash |
| 89 | 89 |
| 90 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 90 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
| OLD | NEW |