Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.h

Issue 9580030: Inform webkit when PPAPI plugin contents are opaque. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/plugin_delegate.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698