| 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 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 void ViewFlushedPaint(); | 206 void ViewFlushedPaint(); |
| 207 | 207 |
| 208 // If this plugin can be painted merely by copying the backing store to the | 208 // If this plugin can be painted merely by copying the backing store to the |
| 209 // screen, and the plugin bounds encloses the given paint bounds, returns | 209 // screen, and the plugin bounds encloses the given paint bounds, returns |
| 210 // true. In this case, the location, clipping, and ID of the backing store | 210 // true. In this case, the location, clipping, and ID of the backing store |
| 211 // will be filled into the given output parameters. | 211 // will be filled into the given output parameters. |
| 212 bool GetBitmapForOptimizedPluginPaint( | 212 bool GetBitmapForOptimizedPluginPaint( |
| 213 const gfx::Rect& paint_bounds, | 213 const gfx::Rect& paint_bounds, |
| 214 TransportDIB** dib, | 214 TransportDIB** dib, |
| 215 gfx::Rect* dib_bounds, | 215 gfx::Rect* dib_bounds, |
| 216 gfx::Rect* clip); | 216 gfx::Rect* clip, |
| 217 float* scale_factor); |
| 217 | 218 |
| 218 // Tracks all live PluginObjects. | 219 // Tracks all live PluginObjects. |
| 219 void AddPluginObject(PluginObject* plugin_object); | 220 void AddPluginObject(PluginObject* plugin_object); |
| 220 void RemovePluginObject(PluginObject* plugin_object); | 221 void RemovePluginObject(PluginObject* plugin_object); |
| 221 | 222 |
| 222 string16 GetSelectedText(bool html); | 223 string16 GetSelectedText(bool html); |
| 223 string16 GetLinkAtPosition(const gfx::Point& point); | 224 string16 GetLinkAtPosition(const gfx::Point& point); |
| 224 void RequestSurroundingText(size_t desired_number_of_characters); | 225 void RequestSurroundingText(size_t desired_number_of_characters); |
| 225 void Zoom(double factor, bool text_only); | 226 void Zoom(double factor, bool text_only); |
| 226 bool StartFind(const string16& search_text, | 227 bool StartFind(const string16& search_text, |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 // the pointer so we can re-send it later if we are reset to talk to NaCl. | 729 // the pointer so we can re-send it later if we are reset to talk to NaCl. |
| 729 scoped_refptr<PPB_URLLoader_Impl> document_loader_; | 730 scoped_refptr<PPB_URLLoader_Impl> document_loader_; |
| 730 | 731 |
| 731 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 732 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 732 }; | 733 }; |
| 733 | 734 |
| 734 } // namespace ppapi | 735 } // namespace ppapi |
| 735 } // namespace webkit | 736 } // namespace webkit |
| 736 | 737 |
| 737 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 738 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |