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

Side by Side Diff: chrome/browser/printing/print_dialog_gtk.h

Issue 46623002: Move settings setup for PDF and cloud print into single location in PrintingContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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) 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 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <gtk/gtkunixprint.h> 9 #include <gtk/gtkunixprint.h>
10 10
(...skipping 18 matching lines...) Expand all
29 : public printing::PrintDialogGtkInterface, 29 : public printing::PrintDialogGtkInterface,
30 public base::RefCountedThreadSafe< 30 public base::RefCountedThreadSafe<
31 PrintDialogGtk, content::BrowserThread::DeleteOnUIThread> { 31 PrintDialogGtk, content::BrowserThread::DeleteOnUIThread> {
32 public: 32 public:
33 // Creates and returns a print dialog. 33 // Creates and returns a print dialog.
34 static printing::PrintDialogGtkInterface* CreatePrintDialog( 34 static printing::PrintDialogGtkInterface* CreatePrintDialog(
35 PrintingContextGtk* context); 35 PrintingContextGtk* context);
36 36
37 // printing::PrintDialogGtkInterface implementation. 37 // printing::PrintDialogGtkInterface implementation.
38 virtual void UseDefaultSettings() OVERRIDE; 38 virtual void UseDefaultSettings() OVERRIDE;
39 virtual bool UpdateSettings(bool target_is_pdf, 39 virtual bool UpdateSettings(printing::PrintSettings* settings) OVERRIDE;
40 printing::PrintSettings* settings) OVERRIDE;
41 virtual void ShowDialog( 40 virtual void ShowDialog(
42 gfx::NativeView parent_view, 41 gfx::NativeView parent_view,
43 bool has_selection, 42 bool has_selection,
44 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE; 43 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE;
45 virtual void PrintDocument(const printing::Metafile* metafile, 44 virtual void PrintDocument(const printing::Metafile* metafile,
46 const string16& document_name) OVERRIDE; 45 const string16& document_name) OVERRIDE;
47 virtual void AddRefToDialog() OVERRIDE; 46 virtual void AddRefToDialog() OVERRIDE;
48 virtual void ReleaseDialog() OVERRIDE; 47 virtual void ReleaseDialog() OVERRIDE;
49 48
50 private: 49 private:
(...skipping 30 matching lines...) Expand all
81 GtkPrintSettings* gtk_settings_; 80 GtkPrintSettings* gtk_settings_;
82 GtkPageSetup* page_setup_; 81 GtkPageSetup* page_setup_;
83 GtkPrinter* printer_; 82 GtkPrinter* printer_;
84 83
85 base::FilePath path_to_pdf_; 84 base::FilePath path_to_pdf_;
86 85
87 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); 86 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk);
88 }; 87 };
89 88
90 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 89 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_dialog_gtk.cc » ('j') | printing/print_settings_initializer_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698