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

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

Issue 9379039: GTK: implement "print selection". (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 years, 10 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 (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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/printing/print_dialog_gtk.cc » ('j') | chrome/browser/printing/print_dialog_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698