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

Side by Side Diff: printing/printing_context_linux.cc

Issue 740983002: Implement window.print() on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « printing/printing_context_linux.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_linux.h" 5 #include "printing/printing_context_linux.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "printing/metafile.h" 9 #include "printing/metafile.h"
10 #include "printing/print_dialog_gtk_interface.h" 10 #include "printing/print_dialog_gtk_interface.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void PrintingContextLinux::PrintDocument(const MetafilePlayer& metafile) { 62 void PrintingContextLinux::PrintDocument(const MetafilePlayer& metafile) {
63 DCHECK(print_dialog_); 63 DCHECK(print_dialog_);
64 print_dialog_->PrintDocument(metafile, document_name_); 64 print_dialog_->PrintDocument(metafile, document_name_);
65 } 65 }
66 66
67 void PrintingContextLinux::AskUserForSettings( 67 void PrintingContextLinux::AskUserForSettings(
68 int max_pages, 68 int max_pages,
69 bool has_selection, 69 bool has_selection,
70 bool is_scripted,
70 const PrintSettingsCallback& callback) { 71 const PrintSettingsCallback& callback) {
71 if (!print_dialog_) { 72 if (!print_dialog_) {
72 // Can only get here if the renderer is sending bad messages. 73 // Can only get here if the renderer is sending bad messages.
73 // http://crbug.com/341777 74 // http://crbug.com/341777
74 NOTREACHED(); 75 NOTREACHED();
75 callback.Run(FAILED); 76 callback.Run(FAILED);
76 return; 77 return;
77 } 78 }
78 79
79 print_dialog_->ShowDialog( 80 print_dialog_->ShowDialog(
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 void PrintingContextLinux::ReleaseContext() { 182 void PrintingContextLinux::ReleaseContext() {
182 // Intentional No-op. 183 // Intentional No-op.
183 } 184 }
184 185
185 gfx::NativeDrawingContext PrintingContextLinux::context() const { 186 gfx::NativeDrawingContext PrintingContextLinux::context() const {
186 // Intentional No-op. 187 // Intentional No-op.
187 return NULL; 188 return NULL;
188 } 189 }
189 190
190 } // namespace printing 191 } // namespace printing
OLDNEW
« no previous file with comments | « printing/printing_context_linux.h ('k') | printing/printing_context_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698