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 #ifndef ASH_SHELL_KEYBOARD_CONTROLLER_PROXY_STUB_H_
6 #define ASH_SHELL_KEYBOARD_CONTROLLER_PROXY_STUB_H_
8 #include "ui/aura/test/test_window_delegate.h"
9 #include "ui/keyboard/keyboard_controller_proxy.h"
17 // Stub implementation of KeyboardControllerProxy
18 class KeyboardControllerProxyStub
: public keyboard::KeyboardControllerProxy
{
20 KeyboardControllerProxyStub();
21 ~KeyboardControllerProxyStub() override
;
23 bool HasKeyboardWindow() const override
;
24 aura::Window
* GetKeyboardWindow() override
;
27 // Overridden from keyboard::KeyboardControllerProxy:
28 ui::InputMethod
* GetInputMethod() override
;
29 void RequestAudioInput(
30 content::WebContents
* web_contents
,
31 const content::MediaStreamRequest
& request
,
32 const content::MediaResponseCallback
& callback
) override
;
33 void LoadSystemKeyboard() override
;
34 void ReloadKeyboardIfNeeded() override
;
36 aura::test::TestWindowDelegate delegate_
;
37 scoped_ptr
<aura::Window
> keyboard_
;
38 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxyStub
);
43 #endif // ASH_SHELL_KEYBOARD_CONTROLLER_PROXY_STUB_H_