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 | |
81 #if defined(OS_MACOSX) | 74 #if defined(OS_MACOSX) |
82 void OnSetWindowFocus(bool has_focus); | 75 void OnSetWindowFocus(bool has_focus); |
83 void OnContainerHidden(); | 76 void OnContainerHidden(); |
84 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, | 77 void OnContainerShown(gfx::Rect window_frame, gfx::Rect view_frame, |
85 bool has_focus); | 78 bool has_focus); |
86 void OnWindowFrameChanged(const gfx::Rect& window_frame, | 79 void OnWindowFrameChanged(const gfx::Rect& window_frame, |
87 const gfx::Rect& view_frame); | 80 const gfx::Rect& view_frame); |
88 void OnImeCompositionCompleted(const base::string16& text); | 81 void OnImeCompositionCompleted(const base::string16& text); |
89 #endif | 82 #endif |
90 | 83 |
91 std::string mime_type_; | 84 std::string mime_type_; |
92 int instance_id_; | 85 int instance_id_; |
93 | 86 |
94 scoped_refptr<PluginChannel> channel_; | 87 scoped_refptr<PluginChannel> channel_; |
95 | 88 |
96 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; | 89 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; |
97 WebPluginDelegateImpl* delegate_; | 90 WebPluginDelegateImpl* delegate_; |
98 WebPluginProxy* webplugin_; | 91 WebPluginProxy* webplugin_; |
99 bool in_destructor_; | 92 bool in_destructor_; |
100 | 93 |
101 // The url of the main frame hosting the plugin. | 94 // The url of the main frame hosting the plugin. |
102 GURL page_url_; | 95 GURL page_url_; |
103 | 96 |
104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 97 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
105 }; | 98 }; |
106 | 99 |
107 } // namespace content | 100 } // namespace content |
108 | 101 |
109 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 102 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |