| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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/shell/keyboard_controller_proxy_stub.h" | 5 #include "ash/keyboard_controller_proxy_stub.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell_delegate.h" | 8 #include "ash/shell_delegate.h" |
| 9 #include "ui/aura/window.h" | |
| 10 #include "ui/views/corewm/input_method_event_filter.h" | 9 #include "ui/views/corewm/input_method_event_filter.h" |
| 11 | 10 |
| 12 using namespace content; | 11 using namespace content; |
| 13 | 12 |
| 14 namespace ash { | 13 namespace ash { |
| 15 | 14 |
| 16 KeyboardControllerProxyStub::KeyboardControllerProxyStub() { | 15 KeyboardControllerProxyStub::KeyboardControllerProxyStub() { |
| 17 } | 16 } |
| 18 | 17 |
| 19 KeyboardControllerProxyStub::~KeyboardControllerProxyStub() { | 18 KeyboardControllerProxyStub::~KeyboardControllerProxyStub() { |
| 20 } | 19 } |
| 21 | 20 |
| 22 aura::Window* KeyboardControllerProxyStub::GetKeyboardWindow() { | |
| 23 aura::Window* window = new aura::Window(&delegate_); | |
| 24 window->Init(ui::LAYER_NOT_DRAWN); | |
| 25 return window; | |
| 26 } | |
| 27 | |
| 28 BrowserContext* KeyboardControllerProxyStub::GetBrowserContext() { | 21 BrowserContext* KeyboardControllerProxyStub::GetBrowserContext() { |
| 29 return Shell::GetInstance()->delegate()->GetCurrentBrowserContext(); | 22 return Shell::GetInstance()->delegate()->GetCurrentBrowserContext(); |
| 30 } | 23 } |
| 31 | 24 |
| 32 ui::InputMethod* KeyboardControllerProxyStub::GetInputMethod() { | 25 ui::InputMethod* KeyboardControllerProxyStub::GetInputMethod() { |
| 33 return Shell::GetInstance()->input_method_filter()->input_method(); | 26 return Shell::GetInstance()->input_method_filter()->input_method(); |
| 34 } | 27 } |
| 35 | 28 |
| 36 void KeyboardControllerProxyStub::RequestAudioInput( | 29 void KeyboardControllerProxyStub::RequestAudioInput( |
| 37 WebContents* web_contents, | 30 WebContents* web_contents, |
| 38 const MediaStreamRequest& request, | 31 const MediaStreamRequest& request, |
| 39 const MediaResponseCallback& callback) { | 32 const MediaResponseCallback& callback) { |
| 40 } | 33 } |
| 41 | 34 |
| 42 } // namespace ash | 35 } // namespace ash |
| OLD | NEW |