| 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 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 // Returns the PP_Instance uniquely identifying this instance. Guaranteed | 118 // Returns the PP_Instance uniquely identifying this instance. Guaranteed |
| 119 // nonzero. | 119 // nonzero. |
| 120 PP_Instance pp_instance() const { return pp_instance_; } | 120 PP_Instance pp_instance() const { return pp_instance_; } |
| 121 | 121 |
| 122 ResourceCreationImpl& resource_creation() { return resource_creation_; } | 122 ResourceCreationImpl& resource_creation() { return resource_creation_; } |
| 123 | 123 |
| 124 // Does some pre-destructor cleanup on the instance. This is necessary | 124 // Does some pre-destructor cleanup on the instance. This is necessary |
| 125 // because some cleanup depends on the plugin instance still existing (like | 125 // because some cleanup depends on the plugin instance still existing (like |
| 126 // calling the plugin's DidDestroy function). This function is called from | 126 // calling the plugin's DidDestroy function). This function is called from |
| 127 // the WebPlugin implementation when WebKit is about to remove the plugin. | 127 // the WebPlugin implementation when WebKit is about to remove the plugin, |
| 128 // and may also be called directly by RenderViewImpl when a clean wekbit |
| 129 // shutdown is being skipped. |
| 128 void Delete(); | 130 void Delete(); |
| 129 | 131 |
| 130 // Paints the current backing store to the web page. | 132 // Paints the current backing store to the web page. |
| 131 void Paint(WebKit::WebCanvas* canvas, | 133 void Paint(WebKit::WebCanvas* canvas, |
| 132 const gfx::Rect& plugin_rect, | 134 const gfx::Rect& plugin_rect, |
| 133 const gfx::Rect& paint_rect); | 135 const gfx::Rect& paint_rect); |
| 134 | 136 |
| 135 // Schedules a paint of the page for the given region. The coordinates are | 137 // Schedules a paint of the page for the given region. The coordinates are |
| 136 // relative to the top-left of the plugin. This does nothing if the plugin | 138 // relative to the top-left of the plugin. This does nothing if the plugin |
| 137 // has not yet been positioned. You can supply an empty gfx::Rect() to | 139 // has not yet been positioned. You can supply an empty gfx::Rect() to |
| (...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // The Flash proxy is associated with the instance. | 644 // The Flash proxy is associated with the instance. |
| 643 PPB_Flash_Impl flash_impl_; | 645 PPB_Flash_Impl flash_impl_; |
| 644 | 646 |
| 645 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 647 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 646 }; | 648 }; |
| 647 | 649 |
| 648 } // namespace ppapi | 650 } // namespace ppapi |
| 649 } // namespace webkit | 651 } // namespace webkit |
| 650 | 652 |
| 651 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 653 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |