Cleanup: json_schema_test.js now lives in extensions/test/data.
[chromium-blink-merge.git] / ash / shell / keyboard_controller_proxy_stub.cc
blobc4c8149e837e9407b2ca513112be423c12f1aa33
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ash/shell/keyboard_controller_proxy_stub.h"
7 #include "ash/shell.h"
8 #include "ash/shell_delegate.h"
9 #include "ui/aura/window.h"
10 #include "ui/base/ime/mock_input_method.h"
11 #include "ui/wm/core/input_method_event_filter.h"
13 using namespace content;
15 namespace ash {
17 KeyboardControllerProxyStub::KeyboardControllerProxyStub()
18 : keyboard::KeyboardControllerProxy(Shell::GetInstance()
19 ->delegate()
20 ->GetActiveBrowserContext()) {
23 KeyboardControllerProxyStub::~KeyboardControllerProxyStub() {
26 bool KeyboardControllerProxyStub::HasKeyboardWindow() const {
27 return keyboard_;
30 aura::Window* KeyboardControllerProxyStub::GetKeyboardWindow() {
31 if (!keyboard_) {
32 keyboard_.reset(new aura::Window(&delegate_));
33 keyboard_->Init(aura::WINDOW_LAYER_NOT_DRAWN);
35 return keyboard_.get();
38 ui::InputMethod* KeyboardControllerProxyStub::GetInputMethod() {
39 return Shell::GetInstance()->input_method_filter()->input_method();
42 void KeyboardControllerProxyStub::RequestAudioInput(
43 WebContents* web_contents,
44 const MediaStreamRequest& request,
45 const MediaResponseCallback& callback) {
48 void KeyboardControllerProxyStub::LoadSystemKeyboard() {
51 void KeyboardControllerProxyStub::ReloadKeyboardIfNeeded() {
54 } // namespace ash