| 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 PPAPI_CPP_DEV_PRINTING_DEV_H_ | 5 #ifndef PPAPI_CPP_DEV_PRINTING_DEV_H_ |
| 6 #define PPAPI_CPP_DEV_PRINTING_DEV_H_ | 6 #define PPAPI_CPP_DEV_PRINTING_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/ppp_printing_dev.h" | 8 #include "ppapi/c/dev/ppp_printing_dev.h" |
| 9 #include "ppapi/cpp/instance_handle.h" | 9 #include "ppapi/cpp/instance_handle.h" |
| 10 #include "ppapi/cpp/resource.h" | 10 #include "ppapi/cpp/resource.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 // PPP_Printing_Dev functions exposed as virtual functions for you to | 24 // PPP_Printing_Dev functions exposed as virtual functions for you to |
| 25 // override. | 25 // override. |
| 26 virtual uint32_t QuerySupportedPrintOutputFormats() = 0; | 26 virtual uint32_t QuerySupportedPrintOutputFormats() = 0; |
| 27 virtual int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) = 0; | 27 virtual int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) = 0; |
| 28 virtual Resource PrintPages(const PP_PrintPageNumberRange_Dev* page_ranges, | 28 virtual Resource PrintPages(const PP_PrintPageNumberRange_Dev* page_ranges, |
| 29 uint32_t page_range_count) = 0; | 29 uint32_t page_range_count) = 0; |
| 30 virtual void PrintEnd() = 0; | 30 virtual void PrintEnd() = 0; |
| 31 virtual bool IsPrintScalingDisabled() = 0; | 31 virtual bool IsPrintScalingDisabled() = 0; |
| 32 | 32 |
| 33 // PPB_Printing_Dev functions. |
| 34 // Outputs the default print settings for the default printer into |
| 35 // |print_settings|. Returns false on error. |
| 36 bool GetDefaultPrintSettings(const InstanceHandle& instance, |
| 37 PP_PrintSettings_Dev* print_settings); |
| 38 |
| 33 private: | 39 private: |
| 34 InstanceHandle associated_instance_; | 40 InstanceHandle associated_instance_; |
| 35 }; | 41 }; |
| 36 | 42 |
| 37 } // namespace pp | 43 } // namespace pp |
| 38 | 44 |
| 39 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ | 45 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ |
| OLD | NEW |