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

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

Issue 12437007: Pepper cleanup: USE_SKIA is always true. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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
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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 663
664 // This is only valid between a successful PrintBegin call and a PrintEnd 664 // This is only valid between a successful PrintBegin call and a PrintEnd
665 // call. 665 // call.
666 PP_PrintSettings_Dev current_print_settings_; 666 PP_PrintSettings_Dev current_print_settings_;
667 #if defined(OS_MACOSX) 667 #if defined(OS_MACOSX)
668 // On the Mac, when we draw the bitmap to the PDFContext, it seems necessary 668 // On the Mac, when we draw the bitmap to the PDFContext, it seems necessary
669 // to keep the pixels valid until CGContextEndPage is called. We use this 669 // to keep the pixels valid until CGContextEndPage is called. We use this
670 // variable to hold on to the pixels. 670 // variable to hold on to the pixels.
671 scoped_refptr<PPB_ImageData_Impl> last_printed_page_; 671 scoped_refptr<PPB_ImageData_Impl> last_printed_page_;
672 #endif // defined(OS_MACOSX) 672 #endif // defined(OS_MACOSX)
673 #if defined(USE_SKIA)
674 // Always when printing to PDF on Linux and when printing for preview on Mac 673 // Always when printing to PDF on Linux and when printing for preview on Mac
675 // and Win, the entire document goes into one metafile. However, when users 674 // and Win, the entire document goes into one metafile. However, when users
676 // print only a subset of all the pages, it is impossible to know if a call 675 // print only a subset of all the pages, it is impossible to know if a call
677 // to PrintPage() is the last call. Thus in PrintPage(), just store the page 676 // to PrintPage() is the last call. Thus in PrintPage(), just store the page
678 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_| 677 // number in |ranges_|. The hack is in PrintEnd(), where a valid |canvas_|
679 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible 678 // is preserved in PrintWebViewHelper::PrintPages. This makes it possible
680 // to generate the entire PDF given the variables below: 679 // to generate the entire PDF given the variables below:
681 // 680 //
682 // The most recently used WebCanvas, guaranteed to be valid. 681 // The most recently used WebCanvas, guaranteed to be valid.
683 SkRefPtr<WebKit::WebCanvas> canvas_; 682 SkRefPtr<WebKit::WebCanvas> canvas_;
684 // An array of page ranges. 683 // An array of page ranges.
685 std::vector<PP_PrintPageNumberRange_Dev> ranges_; 684 std::vector<PP_PrintPageNumberRange_Dev> ranges_;
686 #endif // OS_LINUX || OS_WIN
687 685
688 scoped_refptr< ::ppapi::Resource> gamepad_impl_; 686 scoped_refptr< ::ppapi::Resource> gamepad_impl_;
689 687
690 // The plugin print interface. 688 // The plugin print interface.
691 const PPP_Printing_Dev* plugin_print_interface_; 689 const PPP_Printing_Dev* plugin_print_interface_;
692 690
693 // The plugin 3D interface. 691 // The plugin 3D interface.
694 const PPP_Graphics3D* plugin_graphics_3d_interface_; 692 const PPP_Graphics3D* plugin_graphics_3d_interface_;
695 693
696 // Contains the cursor if it's set by the plugin. 694 // Contains the cursor if it's set by the plugin.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_; 777 scoped_ptr<ContentDecryptorDelegate> content_decryptor_delegate_;
780 778
781 friend class PpapiPluginInstanceTest; 779 friend class PpapiPluginInstanceTest;
782 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 780 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
783 }; 781 };
784 782
785 } // namespace ppapi 783 } // namespace ppapi
786 } // namespace webkit 784 } // namespace webkit
787 785
788 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 786 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/pepper_graphics_2d_host.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698