OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // has not yet been positioned. You can supply an empty gfx::Rect() to | 86 // has not yet been positioned. You can supply an empty gfx::Rect() to |
87 // invalidate the entire plugin. | 87 // invalidate the entire plugin. |
88 void InvalidateRect(const gfx::Rect& rect); | 88 void InvalidateRect(const gfx::Rect& rect); |
89 | 89 |
90 // PPB_Instance implementation. | 90 // PPB_Instance implementation. |
91 PP_Var GetWindowObject(); | 91 PP_Var GetWindowObject(); |
92 PP_Var GetOwnerElementObject(); | 92 PP_Var GetOwnerElementObject(); |
93 bool BindGraphics(PP_Resource device_id); | 93 bool BindGraphics(PP_Resource device_id); |
94 bool full_frame() const { return full_frame_; } | 94 bool full_frame() const { return full_frame_; } |
95 bool SetCursor(PP_CursorType_Dev type); | 95 bool SetCursor(PP_CursorType_Dev type); |
| 96 PP_Var ExecuteScript(PP_Var script, PP_Var* exception); |
96 | 97 |
97 // PPP_Instance pass-through. | 98 // PPP_Instance pass-through. |
98 void Delete(); | 99 void Delete(); |
99 bool Initialize(WebKit::WebPluginContainer* container, | 100 bool Initialize(WebKit::WebPluginContainer* container, |
100 const std::vector<std::string>& arg_names, | 101 const std::vector<std::string>& arg_names, |
101 const std::vector<std::string>& arg_values, | 102 const std::vector<std::string>& arg_values, |
102 bool full_frame); | 103 bool full_frame); |
103 bool HandleDocumentLoad(URLLoader* loader); | 104 bool HandleDocumentLoad(URLLoader* loader); |
104 bool HandleInputEvent(const WebKit::WebInputEvent& event, | 105 bool HandleInputEvent(const WebKit::WebInputEvent& event, |
105 WebKit::WebCursorInfo* cursor_info); | 106 WebKit::WebCursorInfo* cursor_info); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 209 |
209 // Containes the cursor if it's set by the plugin. | 210 // Containes the cursor if it's set by the plugin. |
210 scoped_ptr<WebKit::WebCursorInfo> cursor_; | 211 scoped_ptr<WebKit::WebCursorInfo> cursor_; |
211 | 212 |
212 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 213 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
213 }; | 214 }; |
214 | 215 |
215 } // namespace pepper | 216 } // namespace pepper |
216 | 217 |
217 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ | 218 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_INSTANCE_H_ |
OLD | NEW |