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 WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void CommitBackingTexture(); | 123 void CommitBackingTexture(); |
124 | 124 |
125 // Called when the out-of-process plugin implementing this instance crashed. | 125 // Called when the out-of-process plugin implementing this instance crashed. |
126 void InstanceCrashed(); | 126 void InstanceCrashed(); |
127 | 127 |
128 // PPB_Instance implementation. | 128 // PPB_Instance implementation. |
129 PP_Var GetWindowObject(); | 129 PP_Var GetWindowObject(); |
130 PP_Var GetOwnerElementObject(); | 130 PP_Var GetOwnerElementObject(); |
131 bool BindGraphics(PP_Resource graphics_id); | 131 bool BindGraphics(PP_Resource graphics_id); |
132 bool full_frame() const { return full_frame_; } | 132 bool full_frame() const { return full_frame_; } |
133 bool SetCursor(PP_CursorType_Dev type); | 133 // If |type| is not PP_CURSORTYPE_CUSTOM, |custom_image| and |hot_spot| are |
| 134 // ignored. |
| 135 bool SetCursor(PP_CursorType_Dev type, |
| 136 PP_Resource custom_image, |
| 137 const PP_Point* hot_spot); |
134 PP_Var ExecuteScript(PP_Var script, PP_Var* exception); | 138 PP_Var ExecuteScript(PP_Var script, PP_Var* exception); |
135 | 139 |
136 // PPP_Instance pass-through. | 140 // PPP_Instance pass-through. |
137 void Delete(); | 141 void Delete(); |
138 bool Initialize(WebKit::WebPluginContainer* container, | 142 bool Initialize(WebKit::WebPluginContainer* container, |
139 const std::vector<std::string>& arg_names, | 143 const std::vector<std::string>& arg_names, |
140 const std::vector<std::string>& arg_values, | 144 const std::vector<std::string>& arg_values, |
141 bool full_frame); | 145 bool full_frame); |
142 bool HandleDocumentLoad(PPB_URLLoader_Impl* loader); | 146 bool HandleDocumentLoad(PPB_URLLoader_Impl* loader); |
143 bool HandleInputEvent(const WebKit::WebInputEvent& event, | 147 bool HandleInputEvent(const WebKit::WebInputEvent& event, |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 375 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
372 NPObjectToObjectVarMap np_object_to_object_var_; | 376 NPObjectToObjectVarMap np_object_to_object_var_; |
373 | 377 |
374 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 378 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
375 }; | 379 }; |
376 | 380 |
377 } // namespace ppapi | 381 } // namespace ppapi |
378 } // namespace webkit | 382 } // namespace webkit |
379 | 383 |
380 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 384 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |