Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: ppapi/cpp/dev/printing_dev.h

Issue 375253002: [Chrome] Support NumCopies print preset (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: PPB_Printing_Dev changes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698