OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ |
6 #define CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
10 #include "chrome/common/extensions/extension_messages.h" | 10 #include "chrome/common/extensions/extension_messages.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 // Overridden from views::View | 36 // Overridden from views::View |
37 virtual std::string GetClassName() const OVERRIDE; | 37 virtual std::string GetClassName() const OVERRIDE; |
38 virtual void Layout(); | 38 virtual void Layout(); |
39 | 39 |
40 // ExtensionFunctionDispatcher::Delegate implementation | 40 // ExtensionFunctionDispatcher::Delegate implementation |
41 virtual Browser* GetBrowser(); | 41 virtual Browser* GetBrowser(); |
42 virtual gfx::NativeView GetNativeViewOfHost(); | 42 virtual gfx::NativeView GetNativeViewOfHost(); |
43 virtual TabContents* GetAssociatedTabContents() const; | 43 virtual TabContents* GetAssociatedTabContents() const; |
44 | 44 |
| 45 // Shows |keyboard_url|. The URL should look something like |
| 46 // http://id_of_the_vk_extension/index.html#layout_name_to_show |
| 47 void LoadURL(const GURL& keyboard_url); |
| 48 |
45 protected: | 49 protected: |
46 // Overridden from views::View | 50 // Overridden from views::View |
47 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); | 51 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); |
48 | 52 |
49 // Overridden from TabContentsObserver | 53 // Overridden from TabContentsObserver |
50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 54 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
51 | 55 |
52 private: | 56 private: |
53 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 57 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
54 | 58 |
55 DOMView* dom_view_; | 59 DOMView* dom_view_; |
56 ExtensionFunctionDispatcher extension_function_dispatcher_; | 60 ExtensionFunctionDispatcher extension_function_dispatcher_; |
57 Browser* browser_; | 61 Browser* browser_; |
58 | 62 |
59 DISALLOW_COPY_AND_ASSIGN(KeyboardContainerView); | 63 DISALLOW_COPY_AND_ASSIGN(KeyboardContainerView); |
60 }; | 64 }; |
61 | 65 |
62 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ | 66 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_ |
OLD | NEW |