Add git cl format presubmit warning for extension and apps.
[chromium-blink-merge.git] / ash / shell / keyboard_controller_proxy_stub.h
blob39ddaf6e3ed30534e85ca65877e01c96783c2ef9
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"
11 namespace aura {
12 class Window;
13 } // namespace aura
15 namespace ash {
17 // Stub implementation of KeyboardControllerProxy
18 class KeyboardControllerProxyStub : public keyboard::KeyboardControllerProxy {
19 public:
20 KeyboardControllerProxyStub();
21 virtual ~KeyboardControllerProxyStub();
23 virtual aura::Window* GetKeyboardWindow() OVERRIDE;
25 private:
26 // Overridden from keyboard::KeyboardControllerProxy:
27 virtual content::BrowserContext* GetBrowserContext() OVERRIDE;
28 virtual ui::InputMethod* GetInputMethod() OVERRIDE;
29 virtual void RequestAudioInput(content::WebContents* web_contents,
30 const content::MediaStreamRequest& request,
31 const content::MediaResponseCallback& callback) OVERRIDE;
33 aura::test::TestWindowDelegate delegate_;
34 scoped_ptr<aura::Window> keyboard_;
36 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxyStub);
39 } // namespace ash
41 #endif // ASH_SHELL_KEYBOARD_CONTROLLER_PROXY_STUB_H_