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

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

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 | « ppapi/cpp/dev/printing_dev.h ('k') | no next file » | 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 #include "ppapi/cpp/dev/printing_dev.h" 5 #include "ppapi/cpp/dev/printing_dev.h"
6 6
7 #include "ppapi/c/dev/ppb_printing_dev.h" 7 #include "ppapi/c/dev/ppb_printing_dev.h"
8 #include "ppapi/cpp/instance.h" 8 #include "ppapi/cpp/instance.h"
9 #include "ppapi/cpp/instance_handle.h" 9 #include "ppapi/cpp/instance_handle.h"
10 #include "ppapi/cpp/module.h" 10 #include "ppapi/cpp/module.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Instance::RemovePerInstanceObject(associated_instance_, 85 Instance::RemovePerInstanceObject(associated_instance_,
86 kPPPPrintingInterface, this); 86 kPPPPrintingInterface, this);
87 } 87 }
88 88
89 // static 89 // static
90 bool Printing_Dev::IsAvailable() { 90 bool Printing_Dev::IsAvailable() {
91 return has_interface<PPB_Printing_Dev_0_6>(); 91 return has_interface<PPB_Printing_Dev_0_6>();
92 } 92 }
93 93
94 bool Printing_Dev::GetDefaultPrintSettings( 94 bool Printing_Dev::GetDefaultPrintSettings(
95 PP_PrintSettings_Dev* print_settings) { 95 PP_PrintSettings_Dev* print_settings) const {
96 if (!has_interface<PPB_Printing_Dev_0_6>()) 96 if (!has_interface<PPB_Printing_Dev_0_6>())
97 return false; 97 return false;
98 return PP_ToBool( 98 return PP_ToBool(
99 get_interface<PPB_Printing_Dev_0_6>()->GetDefaultPrintSettings( 99 get_interface<PPB_Printing_Dev_0_6>()->GetDefaultPrintSettings(
100 associated_instance_.pp_instance(), print_settings)); 100 associated_instance_.pp_instance(), print_settings));
101 } 101 }
102 102
103 } // namespace pp 103 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/cpp/dev/printing_dev.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698