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

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

Issue 10096001: Remove support for bitmap printing in pepper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 void ScheduleAsyncDidChangeView(const ::ppapi::ViewData& previous_view); 421 void ScheduleAsyncDidChangeView(const ::ppapi::ViewData& previous_view);
422 void SendAsyncDidChangeView(const ::ppapi::ViewData& previous_view); 422 void SendAsyncDidChangeView(const ::ppapi::ViewData& previous_view);
423 void SendDidChangeView(const ::ppapi::ViewData& previous_view); 423 void SendDidChangeView(const ::ppapi::ViewData& previous_view);
424 424
425 // Reports the current plugin geometry to the plugin by calling 425 // Reports the current plugin geometry to the plugin by calling
426 // DidChangeView. 426 // DidChangeView.
427 void ReportGeometry(); 427 void ReportGeometry();
428 428
429 // Queries the plugin for supported print formats and sets |format| to the 429 // Queries the plugin for supported print formats and sets |format| to the
430 // best format to use. Returns false if the plugin does not support any 430 // best format to use. Returns false if the plugin does not support any
431 // print format that we can handle (we can handle raster and PDF). 431 // print format that we can handle (we can handle raster and PDF).
viettrungluu 2012/04/16 04:53:53 s/raster and //
432 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); 432 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format);
433 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); 433 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas);
434 bool PrintRasterOutput(PP_Resource print_output, WebKit::WebCanvas* canvas);
435 #if defined(OS_WIN)
436 bool DrawJPEGToPlatformDC(const SkBitmap& bitmap,
437 const gfx::Rect& printable_area,
438 WebKit::WebCanvas* canvas);
439 #elif defined(OS_MACOSX) && !defined(USE_SKIA)
440 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting
441 // at the specified destination rect.
442 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas,
443 const gfx::Rect& dest_rect, int canvas_height);
444 #endif // OS_MACOSX
445 434
446 // Get the bound graphics context as a concrete 2D graphics context or returns 435 // Get the bound graphics context as a concrete 2D graphics context or returns
447 // null if the context is not 2D. 436 // null if the context is not 2D.
448 PPB_Graphics2D_Impl* GetBoundGraphics2D() const; 437 PPB_Graphics2D_Impl* GetBoundGraphics2D() const;
449 438
450 // Get the bound 3D graphics context. 439 // Get the bound 3D graphics context.
451 // Returns NULL if bound graphics is not a 3D context. 440 // Returns NULL if bound graphics is not a 3D context.
452 PPB_Graphics3D_Impl* GetBoundGraphics3D() const; 441 PPB_Graphics3D_Impl* GetBoundGraphics3D() const;
453 442
454 // Sets the id of the texture that the plugin draws to. The id is in the 443 // Sets the id of the texture that the plugin draws to. The id is in the
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // a user gesture after it has been processed. 635 // a user gesture after it has been processed.
647 PP_TimeTicks pending_user_gesture_; 636 PP_TimeTicks pending_user_gesture_;
648 637
649 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 638 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
650 }; 639 };
651 640
652 } // namespace ppapi 641 } // namespace ppapi
653 } // namespace webkit 642 } // namespace webkit
654 643
655 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 644 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698