Chromium Code Reviews| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 431 // null if the context is not 2D. | 431 // null if the context is not 2D. |
| 432 PPB_Graphics2D_Impl* GetBoundGraphics2D() const; | 432 PPB_Graphics2D_Impl* GetBoundGraphics2D() const; |
| 433 | 433 |
| 434 // Get the bound 3D graphics context. | 434 // Get the bound 3D graphics context. |
| 435 // Returns NULL if bound graphics is not a 3D context. | 435 // Returns NULL if bound graphics is not a 3D context. |
| 436 PPB_Graphics3D_Impl* GetBoundGraphics3D() const; | 436 PPB_Graphics3D_Impl* GetBoundGraphics3D() const; |
| 437 | 437 |
| 438 // Sets the id of the texture that the plugin draws to. The id is in the | 438 // Sets the id of the texture that the plugin draws to. The id is in the |
| 439 // compositor space so it can use it to composite with rest of the page. | 439 // compositor space so it can use it to composite with rest of the page. |
| 440 // A value of zero indicates the plugin is not backed by a texture. | 440 // A value of zero indicates the plugin is not backed by a texture. |
| 441 void setBackingTextureId(unsigned int id); | 441 // isOpaque is true if the plugin contents are always opaque. |
| 442 void setBackingTextureId(unsigned int id, bool isOpaque); | |
|
piman
2012/03/06 01:40:56
style nit: isOpaque -> is_opaque (also in implemen
| |
| 442 | 443 |
| 443 // Internal helper function for PrintPage(). | 444 // Internal helper function for PrintPage(). |
| 444 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, | 445 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, |
| 445 int num_ranges, | 446 int num_ranges, |
| 446 WebKit::WebCanvas* canvas); | 447 WebKit::WebCanvas* canvas); |
| 447 | 448 |
| 448 void DoSetCursor(WebKit::WebCursorInfo* cursor); | 449 void DoSetCursor(WebKit::WebCursorInfo* cursor); |
| 449 | 450 |
| 450 // Internal helper functions for HandleCompositionXXX(). | 451 // Internal helper functions for HandleCompositionXXX(). |
| 451 bool SendCompositionEventToPlugin( | 452 bool SendCompositionEventToPlugin( |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 619 | 620 |
| 620 PP_CompletionCallback lock_mouse_callback_; | 621 PP_CompletionCallback lock_mouse_callback_; |
| 621 | 622 |
| 622 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 623 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 623 }; | 624 }; |
| 624 | 625 |
| 625 } // namespace ppapi | 626 } // namespace ppapi |
| 626 } // namespace webkit | 627 } // namespace webkit |
| 627 | 628 |
| 628 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 629 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |