Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: ash/test/content/keyboard_controller_proxy_stub.h

Issue 1392713002: Extract content dependency from keyboard code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/test/content/keyboard_controller_proxy_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef ASH_TEST_CONTENT_KEYBOARD_CONTROLLER_PROXY_STUB_H_
6 #define ASH_TEST_CONTENT_KEYBOARD_CONTROLLER_PROXY_STUB_H_
7
8 #include "ui/aura/test/test_window_delegate.h"
9 #include "ui/keyboard/keyboard_controller_proxy.h"
10
11 namespace aura {
12 class Window;
13 } // namespace aura
14
15 namespace ash {
16
17 // Stub implementation of KeyboardControllerProxy
18 class KeyboardControllerProxyStub : public keyboard::KeyboardControllerProxy {
19 public:
20 KeyboardControllerProxyStub();
21 ~KeyboardControllerProxyStub() override;
22
23 bool HasKeyboardWindow() const override;
24 aura::Window* GetKeyboardWindow() override;
25
26 private:
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;
35
36 aura::test::TestWindowDelegate delegate_;
37 scoped_ptr<aura::Window> keyboard_;
38 DISALLOW_COPY_AND_ASSIGN(KeyboardControllerProxyStub);
39 };
40
41 } // namespace ash
42
43 #endif // ASH_TEST_CONTENT_KEYBOARD_CONTROLLER_PROXY_STUB_H_
OLDNEW
« no previous file with comments | « ash/shell_delegate.h ('k') | ash/test/content/keyboard_controller_proxy_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698