OLD | NEW |
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 #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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 #include <gtk/gtkunixprint.h> | 10 #include <gtk/gtkunixprint.h> |
(...skipping 24 matching lines...) Expand all Loading... |
35 // Creates and returns a print dialog. | 35 // Creates and returns a print dialog. |
36 static printing::PrintDialogGtkInterface* CreatePrintDialog( | 36 static printing::PrintDialogGtkInterface* CreatePrintDialog( |
37 PrintingContextGtk* context); | 37 PrintingContextGtk* context); |
38 | 38 |
39 // printing::PrintDialogGtkInterface implementation. | 39 // printing::PrintDialogGtkInterface implementation. |
40 virtual void UseDefaultSettings() OVERRIDE; | 40 virtual void UseDefaultSettings() OVERRIDE; |
41 virtual bool UpdateSettings(const base::DictionaryValue& job_settings, | 41 virtual bool UpdateSettings(const base::DictionaryValue& job_settings, |
42 const printing::PageRanges& ranges, | 42 const printing::PageRanges& ranges, |
43 printing::PrintSettings* settings) OVERRIDE; | 43 printing::PrintSettings* settings) OVERRIDE; |
44 virtual void ShowDialog( | 44 virtual void ShowDialog( |
| 45 bool has_selection, |
45 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE; | 46 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE; |
46 virtual void PrintDocument(const printing::Metafile* metafile, | 47 virtual void PrintDocument(const printing::Metafile* metafile, |
47 const string16& document_name) OVERRIDE; | 48 const string16& document_name) OVERRIDE; |
48 virtual void AddRefToDialog() OVERRIDE; | 49 virtual void AddRefToDialog() OVERRIDE; |
49 virtual void ReleaseDialog() OVERRIDE; | 50 virtual void ReleaseDialog() OVERRIDE; |
50 | 51 |
51 private: | 52 private: |
52 friend struct content::BrowserThread::DeleteOnThread< | 53 friend struct content::BrowserThread::DeleteOnThread< |
53 content::BrowserThread::UI>; | 54 content::BrowserThread::UI>; |
54 friend class base::DeleteHelper<PrintDialogGtk>; | 55 friend class base::DeleteHelper<PrintDialogGtk>; |
(...skipping 28 matching lines...) Expand all Loading... |
83 GtkPrintSettings* gtk_settings_; | 84 GtkPrintSettings* gtk_settings_; |
84 GtkPageSetup* page_setup_; | 85 GtkPageSetup* page_setup_; |
85 GtkPrinter* printer_; | 86 GtkPrinter* printer_; |
86 | 87 |
87 FilePath path_to_pdf_; | 88 FilePath path_to_pdf_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); | 90 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); |
90 }; | 91 }; |
91 | 92 |
92 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ | 93 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ |
OLD | NEW |