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: chrome/browser/printing/print_dialog_gtk.h

Issue 10436002: Remove use of BrowserList::GetLastActive from PrintDialogGtk. Pass through the parent GtkWidget ins… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/printing/print_dialog_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698