Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: ash/test/test_shell_delegate.cc

Issue 1392713002: Extract content dependency from keyboard code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/default_accessibility_delegate.h" 9 #include "ash/default_accessibility_delegate.h"
10 #include "ash/gpu_support_stub.h" 10 #include "ash/gpu_support_stub.h"
11 #include "ash/media_delegate.h" 11 #include "ash/media_delegate.h"
12 #include "ash/new_window_delegate.h" 12 #include "ash/new_window_delegate.h"
13 #include "ash/session/session_state_delegate.h" 13 #include "ash/session/session_state_delegate.h"
14 #include "ash/shell.h" 14 #include "ash/shell.h"
15 #include "ash/shell_window_ids.h" 15 #include "ash/shell_window_ids.h"
16 #include "ash/test/content/keyboard_controller_proxy_stub.h" 16 #include "ash/test/test_keyboard_ui.h"
17 #include "ash/test/test_session_state_delegate.h" 17 #include "ash/test/test_session_state_delegate.h"
18 #include "ash/test/test_shelf_delegate.h" 18 #include "ash/test/test_shelf_delegate.h"
19 #include "ash/test/test_system_tray_delegate.h" 19 #include "ash/test/test_system_tray_delegate.h"
20 #include "ash/test/test_user_wallpaper_delegate.h" 20 #include "ash/test/test_user_wallpaper_delegate.h"
21 #include "ash/wm/window_state.h" 21 #include "ash/wm/window_state.h"
22 #include "ash/wm/window_util.h" 22 #include "ash/wm/window_util.h"
23 #include "base/logging.h" 23 #include "base/logging.h"
24 #include "ui/app_list/app_list_model.h" 24 #include "ui/app_list/app_list_model.h"
25 #include "ui/app_list/app_list_view_delegate.h" 25 #include "ui/app_list/app_list_view_delegate.h"
26 #include "ui/app_list/test/app_list_test_view_delegate.h" 26 #include "ui/app_list/test/app_list_test_view_delegate.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void TestShellDelegate::PreInit() { 123 void TestShellDelegate::PreInit() {
124 } 124 }
125 125
126 void TestShellDelegate::PreShutdown() { 126 void TestShellDelegate::PreShutdown() {
127 } 127 }
128 128
129 void TestShellDelegate::Exit() { 129 void TestShellDelegate::Exit() {
130 num_exit_requests_++; 130 num_exit_requests_++;
131 } 131 }
132 132
133 keyboard::KeyboardControllerProxy* 133 keyboard::KeyboardUI* TestShellDelegate::CreateKeyboardUI() {
134 TestShellDelegate::CreateKeyboardControllerProxy() { 134 return new TestKeyboardUI;
135 return new KeyboardControllerProxyStub();
136 } 135 }
137 136
138 void TestShellDelegate::VirtualKeyboardActivated(bool activated) { 137 void TestShellDelegate::VirtualKeyboardActivated(bool activated) {
139 FOR_EACH_OBSERVER(ash::VirtualKeyboardStateObserver, 138 FOR_EACH_OBSERVER(ash::VirtualKeyboardStateObserver,
140 keyboard_state_observer_list_, 139 keyboard_state_observer_list_,
141 OnVirtualKeyboardStateChanged(activated)); 140 OnVirtualKeyboardStateChanged(activated));
142 } 141 }
143 142
144 void TestShellDelegate::AddVirtualKeyboardStateObserver( 143 void TestShellDelegate::AddVirtualKeyboardStateObserver(
145 VirtualKeyboardStateObserver* observer) { 144 VirtualKeyboardStateObserver* observer) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 #if defined(OS_CHROMEOS) 208 #if defined(OS_CHROMEOS)
210 Shell* shell = Shell::GetInstance(); 209 Shell* shell = Shell::GetInstance();
211 static_cast<MediaDelegateImpl*>(shell->media_delegate()) 210 static_cast<MediaDelegateImpl*>(shell->media_delegate())
212 ->set_media_capture_state(state); 211 ->set_media_capture_state(state);
213 shell->system_tray_notifier()->NotifyMediaCaptureChanged(); 212 shell->system_tray_notifier()->NotifyMediaCaptureChanged();
214 #endif 213 #endif
215 } 214 }
216 215
217 } // namespace test 216 } // namespace test
218 } // namespace ash 217 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698