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

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

Issue 10560008: PPAPI: Make Printing_Dev::GetDefaultPrintSettings() const. (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
« no previous file with comments | « no previous file | ppapi/cpp/dev/printing_dev.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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_
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/dev/printing_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698