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 19 matching lines...) Expand all Loading... | |
30 void set_multi_profiles_enabled(bool multi_profiles_enabled) { | 30 void set_multi_profiles_enabled(bool multi_profiles_enabled) { |
31 multi_profiles_enabled_ = multi_profiles_enabled; | 31 multi_profiles_enabled_ = multi_profiles_enabled; |
32 } | 32 } |
33 | 33 |
34 // Overridden from ShellDelegate: | 34 // Overridden from ShellDelegate: |
35 bool IsFirstRunAfterBoot() const override; | 35 bool IsFirstRunAfterBoot() const override; |
36 bool IsIncognitoAllowed() const override; | 36 bool IsIncognitoAllowed() const override; |
37 bool IsMultiProfilesEnabled() const override; | 37 bool IsMultiProfilesEnabled() const override; |
38 bool IsRunningInForcedAppMode() const override; | 38 bool IsRunningInForcedAppMode() const override; |
39 bool IsMultiAccountEnabled() const override; | 39 bool IsMultiAccountEnabled() const override; |
40 bool IsFirstTimeMaximized() const override; | |
40 void PreInit() override; | 41 void PreInit() override; |
41 void PreShutdown() override; | 42 void PreShutdown() override; |
42 void Exit() override; | 43 void Exit() override; |
43 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; | 44 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; |
44 void VirtualKeyboardActivated(bool activated) override; | 45 void VirtualKeyboardActivated(bool activated) override; |
45 void AddVirtualKeyboardStateObserver( | 46 void AddVirtualKeyboardStateObserver( |
46 VirtualKeyboardStateObserver* observer) override; | 47 VirtualKeyboardStateObserver* observer) override; |
47 void RemoveVirtualKeyboardStateObserver( | 48 void RemoveVirtualKeyboardStateObserver( |
48 VirtualKeyboardStateObserver* observer) override; | 49 VirtualKeyboardStateObserver* observer) override; |
49 content::BrowserContext* GetActiveBrowserContext() override; | 50 content::BrowserContext* GetActiveBrowserContext() override; |
(...skipping 11 matching lines...) Expand all Loading... | |
61 GPUSupport* CreateGPUSupport() override; | 62 GPUSupport* CreateGPUSupport() override; |
62 base::string16 GetProductName() const override; | 63 base::string16 GetProductName() const override; |
63 | 64 |
64 int num_exit_requests() const { return num_exit_requests_; } | 65 int num_exit_requests() const { return num_exit_requests_; } |
65 | 66 |
66 TestSessionStateDelegate* test_session_state_delegate() { | 67 TestSessionStateDelegate* test_session_state_delegate() { |
67 return test_session_state_delegate_; | 68 return test_session_state_delegate_; |
68 } | 69 } |
69 | 70 |
70 void SetMediaCaptureState(MediaCaptureState state); | 71 void SetMediaCaptureState(MediaCaptureState state); |
72 void SetFirstTimeMaximized(bool maximized) { | |
bartfab (slow)
2015/03/12 11:54:43
Nit: If you rename IsFirstTimeMaximized(), rename
peletskyi
2015/03/18 13:28:09
Done.
| |
73 first_time_maximized_ = maximized; | |
74 }; | |
71 | 75 |
72 private: | 76 private: |
73 int num_exit_requests_; | 77 int num_exit_requests_; |
74 bool multi_profiles_enabled_; | 78 bool multi_profiles_enabled_; |
79 bool first_time_maximized_; | |
75 | 80 |
76 scoped_ptr<content::BrowserContext> active_browser_context_; | 81 scoped_ptr<content::BrowserContext> active_browser_context_; |
77 scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_; | 82 scoped_ptr<app_list::AppListViewDelegate> app_list_view_delegate_; |
78 | 83 |
79 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_; | 84 ObserverList<ash::VirtualKeyboardStateObserver> keyboard_state_observer_list_; |
80 | 85 |
81 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. | 86 TestSessionStateDelegate* test_session_state_delegate_; // Not owned. |
82 | 87 |
83 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); | 88 DISALLOW_COPY_AND_ASSIGN(TestShellDelegate); |
84 }; | 89 }; |
85 | 90 |
86 } // namespace test | 91 } // namespace test |
87 } // namespace ash | 92 } // namespace ash |
88 | 93 |
89 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ | 94 #endif // ASH_TEST_TEST_SHELL_DELEGATE_H_ |
OLD | NEW |