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 #ifndef ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ | 5 #ifndef ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ |
6 #define ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ | 6 #define ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/aura/test/test_window_delegate.h" | |
9 #include "ui/keyboard/keyboard_controller_proxy.h" | 10 #include "ui/keyboard/keyboard_controller_proxy.h" |
10 | 11 |
12 namespace aura { | |
13 class Window; | |
14 } // namespace aura | |
15 | |
11 namespace ash { | 16 namespace ash { |
12 | 17 |
13 // Stub implementation of KeyboardControllerProxy | 18 // Stub implementation of KeyboardControllerProxy |
14 class ASH_EXPORT KeyboardControllerProxyStub | 19 class ASH_EXPORT KeyboardControllerProxyStub |
15 : public keyboard::KeyboardControllerProxy { | 20 : public keyboard::KeyboardControllerProxy { |
16 public: | 21 public: |
17 KeyboardControllerProxyStub(); | 22 KeyboardControllerProxyStub(); |
18 virtual ~KeyboardControllerProxyStub(); | 23 virtual ~KeyboardControllerProxyStub(); |
19 | 24 |
25 aura::Window* GetKeyboardWindow() OVERRIDE; | |
oshima
2013/11/13 22:23:37
virtual
bshe
2013/11/14 00:11:29
Done.
| |
26 | |
20 private: | 27 private: |
21 // Overridden from keyboard::KeyboardControllerProxy: | 28 // Overridden from keyboard::KeyboardControllerProxy: |
22 virtual content::BrowserContext* GetBrowserContext() OVERRIDE; | 29 virtual content::BrowserContext* GetBrowserContext() OVERRIDE; |
23 virtual ui::InputMethod* GetInputMethod() OVERRIDE; | 30 virtual ui::InputMethod* GetInputMethod() OVERRIDE; |
24 virtual void RequestAudioInput(content::WebContents* web_contents, | 31 virtual void RequestAudioInput(content::WebContents* web_contents, |
25 const content::MediaStreamRequest& request, | 32 const content::MediaStreamRequest& request, |
26 const content::MediaResponseCallback& callback) OVERRIDE; | 33 const content::MediaResponseCallback& callback) OVERRIDE; |
27 | 34 |
35 aura::test::TestWindowDelegate delegate_; | |
28 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxyStub); | 36 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxyStub); |
29 }; | 37 }; |
30 | 38 |
31 } // namespace ash | 39 } // namespace ash |
32 | 40 |
33 #endif // ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ | 41 #endif // ASH_KEYBOARD_CONTROLLER_PROXY_STUB_H_ |
OLD | NEW |