OLD | NEW |
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 #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 23 matching lines...) Expand all Loading... |
34 // Creates and returns a print dialog. | 34 // Creates and returns a print dialog. |
35 static printing::PrintDialogGtkInterface* CreatePrintDialog( | 35 static printing::PrintDialogGtkInterface* CreatePrintDialog( |
36 PrintingContextGtk* context); | 36 PrintingContextGtk* context); |
37 | 37 |
38 // printing::PrintDialogGtkInterface implementation. | 38 // printing::PrintDialogGtkInterface implementation. |
39 virtual void UseDefaultSettings() OVERRIDE; | 39 virtual void UseDefaultSettings() OVERRIDE; |
40 virtual bool UpdateSettings(const base::DictionaryValue& job_settings, | 40 virtual bool UpdateSettings(const base::DictionaryValue& job_settings, |
41 const printing::PageRanges& ranges, | 41 const printing::PageRanges& ranges, |
42 printing::PrintSettings* settings) OVERRIDE; | 42 printing::PrintSettings* settings) OVERRIDE; |
43 virtual void ShowDialog( | 43 virtual void ShowDialog( |
| 44 gfx::NativeView parent_view, |
44 bool has_selection, | 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>; |
(...skipping 29 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 |