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

Side by Side Diff: printing/printing_context_linux.h

Issue 480303002: Use document from preview for System Dialog printing on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tue 08/19/2014 11:17:57.84 Created 6 years, 4 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 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 #ifndef PRINTING_PRINTING_CONTEXT_LINUX_H_ 5 #ifndef PRINTING_PRINTING_CONTEXT_LINUX_H_
6 #define PRINTING_PRINTING_CONTEXT_LINUX_H_ 6 #define PRINTING_PRINTING_CONTEXT_LINUX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "printing/printing_context.h" 10 #include "printing/printing_context.h"
(...skipping 26 matching lines...) Expand all
37 void PrintDocument(const Metafile* metafile); 37 void PrintDocument(const Metafile* metafile);
38 38
39 // PrintingContext implementation. 39 // PrintingContext implementation.
40 virtual void AskUserForSettings( 40 virtual void AskUserForSettings(
41 gfx::NativeView parent_view, 41 gfx::NativeView parent_view,
42 int max_pages, 42 int max_pages,
43 bool has_selection, 43 bool has_selection,
44 const PrintSettingsCallback& callback) OVERRIDE; 44 const PrintSettingsCallback& callback) OVERRIDE;
45 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE; 45 virtual gfx::Size GetPdfPaperSizeDeviceUnits() OVERRIDE;
46 virtual Result UseDefaultSettings() OVERRIDE; 46 virtual Result UseDefaultSettings() OVERRIDE;
47 virtual Result UpdatePrinterSettings(bool external_preview) OVERRIDE; 47 virtual Result UpdatePrinterSettings(bool external_preview,
48 bool show_system_dialog,
49 gfx::NativeView parent_view) OVERRIDE;
48 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE; 50 virtual Result InitWithSettings(const PrintSettings& settings) OVERRIDE;
49 virtual Result NewDocument(const base::string16& document_name) OVERRIDE; 51 virtual Result NewDocument(const base::string16& document_name) OVERRIDE;
50 virtual Result NewPage() OVERRIDE; 52 virtual Result NewPage() OVERRIDE;
51 virtual Result PageDone() OVERRIDE; 53 virtual Result PageDone() OVERRIDE;
52 virtual Result DocumentDone() OVERRIDE; 54 virtual Result DocumentDone() OVERRIDE;
53 virtual void Cancel() OVERRIDE; 55 virtual void Cancel() OVERRIDE;
54 virtual void ReleaseContext() OVERRIDE; 56 virtual void ReleaseContext() OVERRIDE;
55 virtual gfx::NativeDrawingContext context() const OVERRIDE; 57 virtual gfx::NativeDrawingContext context() const OVERRIDE;
56 58
57 private: 59 private:
58 base::string16 document_name_; 60 base::string16 document_name_;
59 PrintDialogGtkInterface* print_dialog_; 61 PrintDialogGtkInterface* print_dialog_;
60 62
61 DISALLOW_COPY_AND_ASSIGN(PrintingContextLinux); 63 DISALLOW_COPY_AND_ASSIGN(PrintingContextLinux);
62 }; 64 };
63 65
64 } // namespace printing 66 } // namespace printing
65 67
66 #endif // PRINTING_PRINTING_CONTEXT_LINUX_H_ 68 #endif // PRINTING_PRINTING_CONTEXT_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698