| 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_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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 void ScrollRect(int dx, int dy, const gfx::Rect& rect); | 115 void ScrollRect(int dx, int dy, const gfx::Rect& rect); |
| 116 | 116 |
| 117 // If the plugin instance is backed by a texture, return its texture ID in the | 117 // If the plugin instance is backed by a texture, return its texture ID in the |
| 118 // compositor's namespace. Otherwise return 0. Returns 0 by default. | 118 // compositor's namespace. Otherwise return 0. Returns 0 by default. |
| 119 virtual unsigned GetBackingTextureId(); | 119 virtual unsigned GetBackingTextureId(); |
| 120 | 120 |
| 121 // Commit the backing texture to the screen once the side effects some | 121 // Commit the backing texture to the screen once the side effects some |
| 122 // rendering up to an offscreen SwapBuffers are visible. | 122 // rendering up to an offscreen SwapBuffers are visible. |
| 123 void CommitBackingTexture(); | 123 void CommitBackingTexture(); |
| 124 | 124 |
| 125 // Called when the out-of-process plugin implementing this instance crashed. |
| 126 void InstanceCrashed(); |
| 127 |
| 125 // PPB_Instance implementation. | 128 // PPB_Instance implementation. |
| 126 PP_Var GetWindowObject(); | 129 PP_Var GetWindowObject(); |
| 127 PP_Var GetOwnerElementObject(); | 130 PP_Var GetOwnerElementObject(); |
| 128 bool BindGraphics(PP_Resource graphics_id); | 131 bool BindGraphics(PP_Resource graphics_id); |
| 129 bool full_frame() const { return full_frame_; } | 132 bool full_frame() const { return full_frame_; } |
| 130 bool SetCursor(PP_CursorType_Dev type); | 133 bool SetCursor(PP_CursorType_Dev type); |
| 131 PP_Var ExecuteScript(PP_Var script, PP_Var* exception); | 134 PP_Var ExecuteScript(PP_Var script, PP_Var* exception); |
| 132 | 135 |
| 133 // PPP_Instance pass-through. | 136 // PPP_Instance pass-through. |
| 134 void Delete(); | 137 void Delete(); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 339 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
| 337 NPObjectToObjectVarMap np_object_to_object_var_; | 340 NPObjectToObjectVarMap np_object_to_object_var_; |
| 338 | 341 |
| 339 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 342 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 340 }; | 343 }; |
| 341 | 344 |
| 342 } // namespace ppapi | 345 } // namespace ppapi |
| 343 } // namespace webkit | 346 } // namespace webkit |
| 344 | 347 |
| 345 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 348 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |