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

Side by Side Diff: printing/printing_context_cairo.cc

Issue 6533006: Print Preview: Hook up the print button to initiate printing without displaying a print dialog. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressed review comments. Created 9 years, 9 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 | « printing/printing_context_cairo.h ('k') | printing/printing_context_mac.h » ('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) 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 #include "printing/printing_context_cairo.h" 5 #include "printing/printing_context_cairo.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "printing/units.h" 8 #include "printing/units.h"
9 9
10 #if defined(OS_CHROMEOS) 10 #if defined(OS_CHROMEOS)
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 settings, page_setup, ranges_vector, false, &settings_); 144 settings, page_setup, ranges_vector, false, &settings_);
145 145
146 g_object_unref(settings); 146 g_object_unref(settings);
147 // |page_setup| is owned by dialog, so it does not need to be unref'ed. 147 // |page_setup| is owned by dialog, so it does not need to be unref'ed.
148 gtk_widget_destroy(dialog); 148 gtk_widget_destroy(dialog);
149 #endif // defined(OS_CHROMEOS) 149 #endif // defined(OS_CHROMEOS)
150 150
151 return OK; 151 return OK;
152 } 152 }
153 153
154 PrintingContext::Result PrintingContextCairo::UpdatePrintSettings(
155 const PageRanges& ranges) {
156 DCHECK(!in_print_job_);
157
158 settings_.ranges = ranges;
159
160 NOTIMPLEMENTED();
161
162 return FAILED;
163 }
164
154 PrintingContext::Result PrintingContextCairo::InitWithSettings( 165 PrintingContext::Result PrintingContextCairo::InitWithSettings(
155 const PrintSettings& settings) { 166 const PrintSettings& settings) {
156 DCHECK(!in_print_job_); 167 DCHECK(!in_print_job_);
157 168
158 settings_ = settings; 169 settings_ = settings;
159 170
160 return OK; 171 return OK;
161 } 172 }
162 173
163 PrintingContext::Result PrintingContextCairo::NewDocument( 174 PrintingContext::Result PrintingContextCairo::NewDocument(
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 void PrintingContextCairo::ReleaseContext() { 220 void PrintingContextCairo::ReleaseContext() {
210 // Intentional No-op. 221 // Intentional No-op.
211 } 222 }
212 223
213 gfx::NativeDrawingContext PrintingContextCairo::context() const { 224 gfx::NativeDrawingContext PrintingContextCairo::context() const {
214 // Intentional No-op. 225 // Intentional No-op.
215 return NULL; 226 return NULL;
216 } 227 }
217 228
218 } // namespace printing 229 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_context_cairo.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698