| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Queries the plugin for supported print formats and sets |format| to the | 280 // Queries the plugin for supported print formats and sets |format| to the |
| 281 // best format to use. Returns false if the plugin does not support any | 281 // best format to use. Returns false if the plugin does not support any |
| 282 // print format that we can handle (we can handle raster and PDF). | 282 // print format that we can handle (we can handle raster and PDF). |
| 283 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); | 283 bool GetPreferredPrintOutputFormat(PP_PrintOutputFormat_Dev* format); |
| 284 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); | 284 bool PrintPDFOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); |
| 285 bool PrintRasterOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); | 285 bool PrintRasterOutput(PP_Resource print_output, WebKit::WebCanvas* canvas); |
| 286 #if defined(OS_WIN) | 286 #if defined(OS_WIN) |
| 287 bool DrawJPEGToPlatformDC(const SkBitmap& bitmap, | 287 bool DrawJPEGToPlatformDC(const SkBitmap& bitmap, |
| 288 const gfx::Rect& printable_area, | 288 const gfx::Rect& printable_area, |
| 289 WebKit::WebCanvas* canvas); | 289 WebKit::WebCanvas* canvas); |
| 290 #elif defined(OS_MACOSX) | 290 #elif defined(OS_MACOSX) && !defined(USE_SKIA) |
| 291 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting | 291 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting |
| 292 // at the specified destination rect. | 292 // at the specified destination rect. |
| 293 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas, | 293 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas, |
| 294 const gfx::Rect& dest_rect, int canvas_height); | 294 const gfx::Rect& dest_rect, int canvas_height); |
| 295 #endif // OS_MACOSX | 295 #endif // OS_MACOSX |
| 296 | 296 |
| 297 // Get the bound graphics context as a concrete 2D graphics context or returns | 297 // Get the bound graphics context as a concrete 2D graphics context or returns |
| 298 // null if the context is not 2D. | 298 // null if the context is not 2D. |
| 299 PPB_Graphics2D_Impl* bound_graphics_2d() const; | 299 PPB_Graphics2D_Impl* bound_graphics_2d() const; |
| 300 | 300 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; | 422 typedef std::map<NPObject*, ObjectVar*> NPObjectToObjectVarMap; |
| 423 NPObjectToObjectVarMap np_object_to_object_var_; | 423 NPObjectToObjectVarMap np_object_to_object_var_; |
| 424 | 424 |
| 425 DISALLOW_COPY_AND_ASSIGN(PluginInstance); | 425 DISALLOW_COPY_AND_ASSIGN(PluginInstance); |
| 426 }; | 426 }; |
| 427 | 427 |
| 428 } // namespace ppapi | 428 } // namespace ppapi |
| 429 } // namespace webkit | 429 } // namespace webkit |
| 430 | 430 |
| 431 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ | 431 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |