| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // An array of page ranges. | 314 // An array of page ranges. |
| 315 std::vector<PP_PrintPageNumberRange_Dev> ranges_; | 315 std::vector<PP_PrintPageNumberRange_Dev> ranges_; |
| 316 #endif // defined(OS_LINUX) | 316 #endif // defined(OS_LINUX) |
| 317 | 317 |
| 318 // The plugin print interface. | 318 // The plugin print interface. |
| 319 const PPP_Printing_Dev* plugin_print_interface_; | 319 const PPP_Printing_Dev* plugin_print_interface_; |
| 320 | 320 |
| 321 // The plugin 3D interface. | 321 // The plugin 3D interface. |
| 322 const PPP_Graphics3D_Dev* plugin_graphics_3d_interface_; | 322 const PPP_Graphics3D_Dev* plugin_graphics_3d_interface_; |
| 323 | 323 |
| 324 // Containes the cursor if it's set by the plugin. | 324 // Contains the cursor if it's set by the plugin. |
| 325 scoped_ptr<WebKit::WebCursorInfo> cursor_; | 325 scoped_ptr<WebKit::WebCursorInfo> cursor_; |
| 326 | 326 |
| 327 // Set to true if this plugin thinks it will always be on top. This allows us | 327 // Set to true if this plugin thinks it will always be on top. This allows us |
| 328 // to use a more optimized painting path in some cases. | 328 // to use a more optimized painting path in some cases. |
| 329 bool always_on_top_; | 329 bool always_on_top_; |
| 330 | 330 |
| 331 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. | 331 // Plugin container for fullscreen mode. NULL if not in fullscreen mode. |
| 332 FullscreenContainer* fullscreen_container_; | 332 FullscreenContainer* fullscreen_container_; |
| 333 | 333 |
| 334 typedef std::set<PluginObject*> PluginObjectSet; | 334 typedef std::set<PluginObject*> PluginObjectSet; |
| 335 PluginObjectSet live_plugin_objects_; | 335 PluginObjectSet live_plugin_objects_; |
| 336 | 336 |
| 337 // Tracks all live ObjectVars used by this module so we can map NPObjects to | 337 // Tracks all live ObjectVars used by this module so we can map NPObjects to |
| 338 // the corresponding object. These are non-owning references. | 338 // the corresponding object. These are non-owning references. |
| 339 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 339 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
| 340 NPObjectToObjectVarMap np_object_to_object_var_; | 340 NPObjectToObjectVarMap np_object_to_object_var_; |
| 341 | 341 |
| 342 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 342 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 343 }; | 343 }; |
| 344 | 344 |
| 345 } // namespace ppapi | 345 } // namespace ppapi |
| 346 } // namespace webkit | 346 } // namespace webkit |
| 347 | 347 |
| 348 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 348 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |