OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void OnSetFocus(bool focused); | 64 void OnSetFocus(bool focused); |
65 void OnHandleInputEvent(const blink::WebInputEvent* event, | 65 void OnHandleInputEvent(const blink::WebInputEvent* event, |
66 bool* handled, WebCursor* cursor); | 66 bool* handled, WebCursor* cursor); |
67 void OnPaint(const gfx::Rect& damaged_rect); | 67 void OnPaint(const gfx::Rect& damaged_rect); |
68 void OnDidPaint(); | 68 void OnDidPaint(); |
69 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); | 69 void OnUpdateGeometry(const PluginMsg_UpdateGeometry_Param& param); |
70 void OnGetPluginScriptableObject(int* route_id); | 70 void OnGetPluginScriptableObject(int* route_id); |
71 void OnGetFormValue(base::string16* value, bool* success); | 71 void OnGetFormValue(base::string16* value, bool* success); |
72 | 72 |
73 void OnSetContentAreaFocus(bool has_focus); | 73 void OnSetContentAreaFocus(bool has_focus); |
| 74 #if defined(OS_WIN) && !defined(USE_AURA) |
| 75 void OnImeCompositionUpdated(const base::string16& text, |
| 76 const std::vector<int>& clauses, |
| 77 const std::vector<int>& target, |
| 78 int cursor_position); |
| 79 void OnImeCompositionCompleted(const base::string16& text); |
| 80 #endif |
74 #if defined(OS_MACOSX) | 81 #if defined(OS_MACOSX) |
75 void OnSetWindowFocus(bool has_focus); | 82 void OnSetWindowFocus(bool has_focus); |
76 void OnContainerHidden(); | 83 void OnContainerHidden(); |
77 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, | 84 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, |
78 bool has_focus); | 85 bool has_focus); |
79 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 86 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
80 const gfx::Rect& view_frame); | 87 const gfx::Rect& view_frame); |
81 void OnImeCompositionCompleted(const base::string16& text); | 88 void OnImeCompositionCompleted(const base::string16& text); |
82 #endif | 89 #endif |
83 | 90 |
84 std::string mime_type_; | 91 std::string mime_type_; |
85 int instance_id_; | 92 int instance_id_; |
86 | 93 |
87 scoped_refptr<PluginChannel> channel_; | 94 scoped_refptr<PluginChannel> channel_; |
88 | 95 |
89 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; | 96 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; |
90 WebPluginDelegateImpl* delegate_; | 97 WebPluginDelegateImpl* delegate_; |
91 WebPluginProxy* webplugin_; | 98 WebPluginProxy* webplugin_; |
92 bool in_destructor_; | 99 bool in_destructor_; |
93 | 100 |
94 // The url of the main frame hosting the plugin. | 101 // The url of the main frame hosting the plugin. |
95 GURL page_url_; | 102 GURL page_url_; |
96 | 103 |
97 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
98 }; | 105 }; |
99 | 106 |
100 } // namespace content | 107 } // namespace content |
101 | 108 |
102 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 109 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |