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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 namespace ppapi { | 67 namespace ppapi { |
68 | 68 |
69 class FullscreenContainer; | 69 class FullscreenContainer; |
70 class MessageChannel; | 70 class MessageChannel; |
71 class PluginDelegate; | 71 class PluginDelegate; |
72 class PluginModule; | 72 class PluginModule; |
73 class PluginObject; | 73 class PluginObject; |
74 class PPB_Graphics2D_Impl; | 74 class PPB_Graphics2D_Impl; |
75 class PPB_Graphics3D_Impl; | 75 class PPB_Graphics3D_Impl; |
76 class PPB_ImageData_Impl; | 76 class PPB_ImageData_Impl; |
77 class PPB_Surface3D_Impl; | |
78 class PPB_URLLoader_Impl; | 77 class PPB_URLLoader_Impl; |
79 class PPB_URLRequestInfo_Impl; | 78 class PPB_URLRequestInfo_Impl; |
80 | 79 |
81 // Represents one time a plugin appears on one web page. | 80 // Represents one time a plugin appears on one web page. |
82 // | 81 // |
83 // Note: to get from a PP_Instance to a PluginInstance*, use the | 82 // Note: to get from a PP_Instance to a PluginInstance*, use the |
84 // ResourceTracker. | 83 // ResourceTracker. |
85 class PluginInstance : public base::RefCounted<PluginInstance>, | 84 class PluginInstance : public base::RefCounted<PluginInstance>, |
86 public ::ppapi::FunctionGroupBase, | 85 public ::ppapi::FunctionGroupBase, |
87 public ::ppapi::thunk::PPB_Instance_FunctionAPI, | 86 public ::ppapi::thunk::PPB_Instance_FunctionAPI, |
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 #endif // OS_MACOSX | 408 #endif // OS_MACOSX |
410 | 409 |
411 // Get the bound graphics context as a concrete 2D graphics context or returns | 410 // Get the bound graphics context as a concrete 2D graphics context or returns |
412 // null if the context is not 2D. | 411 // null if the context is not 2D. |
413 PPB_Graphics2D_Impl* GetBoundGraphics2D() const; | 412 PPB_Graphics2D_Impl* GetBoundGraphics2D() const; |
414 | 413 |
415 // Get the bound 3D graphics context. | 414 // Get the bound 3D graphics context. |
416 // Returns NULL if bound graphics is not a 3D context. | 415 // Returns NULL if bound graphics is not a 3D context. |
417 PPB_Graphics3D_Impl* GetBoundGraphics3D() const; | 416 PPB_Graphics3D_Impl* GetBoundGraphics3D() const; |
418 | 417 |
419 // DEPRECATED: PPB_Surface3D_Impl is being replaced with PPB_Graphics3D_Impl. | |
420 // Get the bound 3D graphics surface. | |
421 // Returns NULL if bound graphics is not a 3D surface. | |
422 PPB_Surface3D_Impl* GetBoundSurface3D() const; | |
423 | |
424 // Sets the id of the texture that the plugin draws to. The id is in the | 418 // Sets the id of the texture that the plugin draws to. The id is in the |
425 // compositor space so it can use it to composite with rest of the page. | 419 // compositor space so it can use it to composite with rest of the page. |
426 // A value of zero indicates the plugin is not backed by a texture. | 420 // A value of zero indicates the plugin is not backed by a texture. |
427 void setBackingTextureId(unsigned int id); | 421 void setBackingTextureId(unsigned int id); |
428 | 422 |
429 // Internal helper function for PrintPage(). | 423 // Internal helper function for PrintPage(). |
430 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, | 424 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, |
431 int num_ranges, | 425 int num_ranges, |
432 WebKit::WebCanvas* canvas); | 426 WebKit::WebCanvas* canvas); |
433 | 427 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 | 606 |
613 PP_CompletionCallback lock_mouse_callback_; | 607 PP_CompletionCallback lock_mouse_callback_; |
614 | 608 |
615 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 609 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
616 }; | 610 }; |
617 | 611 |
618 } // namespace ppapi | 612 } // namespace ppapi |
619 } // namespace webkit | 613 } // namespace webkit |
620 | 614 |
621 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 615 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
OLD | NEW |