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

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

Issue 10544085: Added PPB function to return default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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 static bool GetDefaultPrintSettings(const InstanceHandle& instance,
yzshen1 2012/06/12 23:14:34 Can it be a non-static method of this class?
raymes 2012/06/13 18:23:46 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698