| 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/completion_callback.h" | 9 #include "ppapi/cpp/completion_callback.h" |
| 10 #include "ppapi/cpp/instance_handle.h" | 10 #include "ppapi/cpp/instance_handle.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 // PPB_Printing_Dev functions. | 34 // PPB_Printing_Dev functions. |
| 35 // Returns true if the browser supports the required PPB_Printing_Dev | 35 // Returns true if the browser supports the required PPB_Printing_Dev |
| 36 // interface. | 36 // interface. |
| 37 static bool IsAvailable(); | 37 static bool IsAvailable(); |
| 38 | 38 |
| 39 // Get the default print settings and store them in the output of |callback|. | 39 // Get the default print settings and store them in the output of |callback|. |
| 40 int32_t GetDefaultPrintSettings( | 40 int32_t GetDefaultPrintSettings( |
| 41 const CompletionCallbackWithOutput<PP_PrintSettings_Dev>& callback) const; | 41 const CompletionCallbackWithOutput<PP_PrintSettings_Dev>& callback) const; |
| 42 | 42 |
| 43 void SetPrintPresetOptionsFromDocument( |
| 44 PP_PrintPresetOptions_Dev& print_options); |
| 45 |
| 43 private: | 46 private: |
| 44 InstanceHandle associated_instance_; | 47 InstanceHandle associated_instance_; |
| 45 }; | 48 }; |
| 46 | 49 |
| 47 } // namespace pp | 50 } // namespace pp |
| 48 | 51 |
| 49 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ | 52 #endif // PPAPI_CPP_DEV_PRINTING_DEV_H_ |
| OLD | NEW |