OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 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 CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ | |
6 #define CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | |
11 #include "content/public/browser/web_contents_observer.h" | |
12 #include "ui/keyboard/keyboard_controller_proxy.h" | |
13 | |
14 class ExtensionFunctionDispatcher; | |
15 | |
16 namespace content { | |
17 class WebContents; | |
18 } | |
19 | |
20 namespace extensions { | |
21 class WindowController; | |
22 } | |
23 | |
24 class AshKeyboardControllerProxy | |
25 : public keyboard::KeyboardControllerProxy, | |
sadrul
2013/04/04 22:08:25
2 more indent. (it looks like some code does use 2
bryeung
2013/04/05 12:29:38
Okay. Done.
| |
26 public content::WebContentsObserver, | |
27 public ExtensionFunctionDispatcher::Delegate { | |
28 public: | |
29 AshKeyboardControllerProxy(); | |
30 virtual ~AshKeyboardControllerProxy(); | |
31 | |
32 // keyboard::KeyboardControllerProxy overrides | |
33 virtual aura::Window* GetKeyboardWindow() OVERRIDE; | |
34 | |
35 // ExtensionFunctionDispatcher::Delegate overrides | |
36 virtual extensions::WindowController* GetExtensionWindowController() const | |
37 OVERRIDE; | |
38 virtual content::WebContents* GetAssociatedWebContents() const OVERRIDE; | |
39 | |
40 private: | |
41 // content::WebContentsObserver overrides | |
42 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | |
sadrul
2013/04/04 22:08:25
overrides after non-overrides
bryeung
2013/04/05 12:29:38
Done.
| |
43 | |
44 void OnRequest(const ExtensionHostMsg_Request_Params& params); | |
45 | |
46 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | |
47 scoped_ptr<content::WebContents> web_contents_; | |
48 | |
49 DISALLOW_COPY_AND_ASSIGN(AshKeyboardControllerProxy); | |
50 }; | |
51 | |
52 #endif // CHROME_BROWSER_UI_ASH_ASH_KEYBOARD_CONTROLLER_PROXY_H_ | |
OLD | NEW |