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" |
(...skipping 18 matching lines...) Expand all Loading... |
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 ForceMaximizeOnFirstRun() const override; |
39 void PreInit() override; | 40 void PreInit() override; |
40 void PreShutdown() override; | 41 void PreShutdown() override; |
41 void Exit() override; | 42 void Exit() override; |
42 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; | 43 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; |
43 void VirtualKeyboardActivated(bool activated) override; | 44 void VirtualKeyboardActivated(bool activated) override; |
44 void AddVirtualKeyboardStateObserver( | 45 void AddVirtualKeyboardStateObserver( |
45 VirtualKeyboardStateObserver* observer) override; | 46 VirtualKeyboardStateObserver* observer) override; |
46 void RemoveVirtualKeyboardStateObserver( | 47 void RemoveVirtualKeyboardStateObserver( |
47 VirtualKeyboardStateObserver* observer) override; | 48 VirtualKeyboardStateObserver* observer) override; |
48 content::BrowserContext* GetActiveBrowserContext() override; | 49 content::BrowserContext* GetActiveBrowserContext() override; |
49 app_list::AppListViewDelegate* GetAppListViewDelegate() override; | 50 app_list::AppListViewDelegate* GetAppListViewDelegate() override; |
50 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; | 51 ShelfDelegate* CreateShelfDelegate(ShelfModel* model) override; |
51 SystemTrayDelegate* CreateSystemTrayDelegate() override; | 52 SystemTrayDelegate* CreateSystemTrayDelegate() override; |
52 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; | 53 UserWallpaperDelegate* CreateUserWallpaperDelegate() override; |
53 TestSessionStateDelegate* CreateSessionStateDelegate() override; | 54 TestSessionStateDelegate* CreateSessionStateDelegate() override; |
54 AccessibilityDelegate* CreateAccessibilityDelegate() override; | 55 AccessibilityDelegate* CreateAccessibilityDelegate() override; |
55 NewWindowDelegate* CreateNewWindowDelegate() override; | 56 NewWindowDelegate* CreateNewWindowDelegate() override; |
56 MediaDelegate* CreateMediaDelegate() override; | 57 MediaDelegate* CreateMediaDelegate() override; |
57 ui::MenuModel* CreateContextMenu(aura::Window* root, | 58 ui::MenuModel* CreateContextMenu(aura::Window* root, |
58 ash::ShelfItemDelegate* item_delegate, | 59 ash::ShelfItemDelegate* item_delegate, |
59 ash::ShelfItem* item) override; | 60 ash::ShelfItem* item) override; |
60 GPUSupport* CreateGPUSupport() override; | 61 GPUSupport* CreateGPUSupport() override; |
61 base::string16 GetProductName() const override; | 62 base::string16 GetProductName() const override; |
62 | 63 |
63 int num_exit_requests() const { return num_exit_requests_; } | 64 int num_exit_requests() const { return num_exit_requests_; } |
64 | 65 |
65 void SetMediaCaptureState(MediaCaptureState state); | 66 void SetMediaCaptureState(MediaCaptureState state); |
| 67 void SetForceMaximizeOnFirstRun(bool maximize) { |
| 68 force_maximize_on_first_run_ = maximize; |
| 69 }; |
66 | 70 |
67 private: | 71 private: |
68 int num_exit_requests_; | 72 int num_exit_requests_; |
69 bool multi_profiles_enabled_; | 73 bool multi_profiles_enabled_; |
| 74 bool force_maximize_on_first_run_; |
70 | 75 |
71 scoped_ptr<content::BrowserContext> active_browser_context_; | 76 scoped_ptr<content::BrowserContext> active_browser_context_; |
72 scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_; | 77 scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_; |
73 | 78 |
74 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_; | 79 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_; |
75 | 80 |
76 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. | 81 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. |
77 | 82 |
78 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 83 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
79 }; | 84 }; |
80 | 85 |
81 } // namespace test | 86 } // namespace test |
82 } // namespace ash | 87 } // namespace ash |
83 | 88 |
84 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 89 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |