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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.h

Issue 2524143003: Print Preview: Add option to rasterize PDFs and add JPEG compression. (Closed)
Patch Set: Created 4 years 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 void SendAsyncDidChangeView(); 641 void SendAsyncDidChangeView();
642 void SendDidChangeView(); 642 void SendDidChangeView();
643 643
644 // Reports the current plugin geometry to the plugin by calling 644 // Reports the current plugin geometry to the plugin by calling
645 // DidChangeView. 645 // DidChangeView.
646 void ReportGeometry(); 646 void ReportGeometry();
647 647
648 // Queries the plugin for supported print formats and sets |format| to the 648 // Queries the plugin for supported print formats and sets |format| to the
649 // best format to use. Returns false if the plugin does not support any 649 // best format to use. Returns false if the plugin does not support any
650 // print format that we can handle (we can handle only PDF). 650 // print format that we can handle (we can handle only PDF).
651 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); 651 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format,
652 const blink::WebPrintParams& params);
652 bool PrintPDFOutput(PP_Resource print_output, 653 bool PrintPDFOutput(PP_Resource print_output,
653 printing::PdfMetafileSkia* metafile); 654 printing::PdfMetafileSkia* metafile);
654 655
655 // Updates the layer for compositing. This creates a layer and attaches to the 656 // Updates the layer for compositing. This creates a layer and attaches to the
656 // container if: 657 // container if:
657 // - we have a bound Graphics3D and the Graphics3D has a texture, OR 658 // - we have a bound Graphics3D and the Graphics3D has a texture, OR
658 // we have a bound Graphics2D and are using software compositing 659 // we have a bound Graphics2D and are using software compositing
659 // - we are not in Flash full-screen mode (or transitioning to it) 660 // - we are not in Flash full-screen mode (or transitioning to it)
660 // Otherwise it destroys the layer. 661 // Otherwise it destroys the layer.
661 // It does either operation lazily. 662 // It does either operation lazily.
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 // view change events. 990 // view change events.
990 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; 991 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_;
991 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; 992 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_;
992 993
993 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); 994 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl);
994 }; 995 };
995 996
996 } // namespace content 997 } // namespace content
997 998
998 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ 999 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698