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

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: '' Created 9 years, 10 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <gtk/gtkprintunixdialog.h> 8 #include <gtk/gtkprintunixdialog.h>
9 #include <unicode/ulocdata.h> 9 #include <unicode/ulocdata.h>
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 settings, page_setup, ranges_vector, false, &settings_); 93 settings, page_setup, ranges_vector, false, &settings_);
94 94
95 g_object_unref(settings); 95 g_object_unref(settings);
96 // |page_setup| is owned by dialog, so it does not need to be unref'ed. 96 // |page_setup| is owned by dialog, so it does not need to be unref'ed.
97 gtk_widget_destroy(dialog); 97 gtk_widget_destroy(dialog);
98 #endif // defined(OS_CHROMEOS) 98 #endif // defined(OS_CHROMEOS)
99 99
100 return OK; 100 return OK;
101 } 101 }
102 102
103 PrintingContext::Result PrintingContextCairo::UpdatePrintSettings(
104 const std::string& job_settings, const PageRanges& ranges) {
105 DCHECK(!in_print_job_);
106
107 settings_.ranges = ranges;
108
109 NOTIMPLEMENTED();
110
111 return FAILED;
112 }
113
114
103 PrintingContext::Result PrintingContextCairo::InitWithSettings( 115 PrintingContext::Result PrintingContextCairo::InitWithSettings(
104 const PrintSettings& settings) { 116 const PrintSettings& settings) {
105 DCHECK(!in_print_job_); 117 DCHECK(!in_print_job_);
106 118
107 settings_ = settings; 119 settings_ = settings;
108 120
109 NOTIMPLEMENTED(); 121 NOTIMPLEMENTED();
110 122
111 return FAILED; 123 return FAILED;
112 } 124 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 172
161 void PrintingContextCairo::ReleaseContext() { 173 void PrintingContextCairo::ReleaseContext() {
162 // Nothing to do yet. 174 // Nothing to do yet.
163 } 175 }
164 176
165 gfx::NativeDrawingContext PrintingContextCairo::context() const { 177 gfx::NativeDrawingContext PrintingContextCairo::context() const {
166 return NULL; 178 return NULL;
167 } 179 }
168 180
169 } // namespace printing 181 } // namespace printing
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698