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