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 #include "ash/test/test_shell_delegate.h" | 5 #include "ash/test/test_shell_delegate.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "ash/app_list/app_list_presenter_delegate.h" | 9 #include "ash/app_list/app_list_presenter_delegate.h" |
10 #include "ash/app_list/app_list_presenter_delegate_factory.h" | 10 #include "ash/app_list/app_list_presenter_delegate_factory.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 TestShellDelegate::TestShellDelegate() | 106 TestShellDelegate::TestShellDelegate() |
107 : num_exit_requests_(0), | 107 : num_exit_requests_(0), |
108 multi_profiles_enabled_(false), | 108 multi_profiles_enabled_(false), |
109 force_maximize_on_first_run_(false), | 109 force_maximize_on_first_run_(false), |
110 app_list_presenter_delegate_factory_(new AppListPresenterDelegateFactory( | 110 app_list_presenter_delegate_factory_(new AppListPresenterDelegateFactory( |
111 base::WrapUnique(new AppListViewDelegateFactoryImpl))) {} | 111 base::WrapUnique(new AppListViewDelegateFactoryImpl))) {} |
112 | 112 |
113 TestShellDelegate::~TestShellDelegate() {} | 113 TestShellDelegate::~TestShellDelegate() {} |
114 | 114 |
115 ::shell::Connector* TestShellDelegate::GetShellConnector() const { | 115 ::service_manager::Connector* TestShellDelegate::GetShellConnector() const { |
116 return nullptr; | 116 return nullptr; |
117 } | 117 } |
118 | 118 |
119 bool TestShellDelegate::IsFirstRunAfterBoot() const { | 119 bool TestShellDelegate::IsFirstRunAfterBoot() const { |
120 return false; | 120 return false; |
121 } | 121 } |
122 | 122 |
123 bool TestShellDelegate::IsIncognitoAllowed() const { | 123 bool TestShellDelegate::IsIncognitoAllowed() const { |
124 return true; | 124 return true; |
125 } | 125 } |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { | 216 void TestShellDelegate::SetMediaCaptureState(MediaCaptureState state) { |
217 #if defined(OS_CHROMEOS) | 217 #if defined(OS_CHROMEOS) |
218 static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate()) | 218 static_cast<MediaDelegateImpl*>(WmShell::Get()->media_delegate()) |
219 ->set_media_capture_state(state); | 219 ->set_media_capture_state(state); |
220 WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged(); | 220 WmShell::Get()->system_tray_notifier()->NotifyMediaCaptureChanged(); |
221 #endif | 221 #endif |
222 } | 222 } |
223 | 223 |
224 } // namespace test | 224 } // namespace test |
225 } // namespace ash | 225 } // namespace ash |
OLD | NEW |