| 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 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 19 matching lines...) Expand all Loading... |
| 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. | 33 // PPB_Printing_Dev functions. |
| 34 // Returns true if the browser supports the required PPB_Printing_Dev | 34 // Returns true if the browser supports the required PPB_Printing_Dev |
| 35 // interface. | 35 // interface. |
| 36 static bool IsAvailable(); | 36 static bool IsAvailable(); |
| 37 | 37 |
| 38 // Outputs the default print settings for the default printer into | 38 // Outputs the default print settings for the default printer into |
| 39 // |print_settings|. Returns false on error. | 39 // |print_settings|. Returns false on error. |
| 40 bool GetDefaultPrintSettings(PP_PrintSettings_Dev* print_settings); | 40 bool GetDefaultPrintSettings(PP_PrintSettings_Dev* print_settings) const; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 InstanceHandle associated_instance_; | 43 InstanceHandle associated_instance_; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 } // namespace pp | 46 } // namespace pp |
| 47 | 47 |
| 48 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ | 48 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ |
| OLD | NEW |