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

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

Issue 9015021: Remove DeleteTask and convert remaining users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix last Linux gotchas (upload attempt #2) Created 8 years, 11 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>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/message_loop_helpers.h"
16 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
17 #include "printing/print_dialog_gtk_interface.h" 18 #include "printing/print_dialog_gtk_interface.h"
18 #include "printing/printing_context_gtk.h" 19 #include "printing/printing_context_gtk.h"
19 #include "ui/base/gtk/gtk_signal.h" 20 #include "ui/base/gtk/gtk_signal.h"
20 21
21 namespace printing { 22 namespace printing {
22 class Metafile; 23 class Metafile;
23 class PrintSettings; 24 class PrintSettings;
24 } 25 }
25 26
(...skipping 17 matching lines...) Expand all
43 virtual void ShowDialog( 44 virtual void ShowDialog(
44 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE; 45 const PrintingContextGtk::PrintSettingsCallback& callback) OVERRIDE;
45 virtual void PrintDocument(const printing::Metafile* metafile, 46 virtual void PrintDocument(const printing::Metafile* metafile,
46 const string16& document_name) OVERRIDE; 47 const string16& document_name) OVERRIDE;
47 virtual void AddRefToDialog() OVERRIDE; 48 virtual void AddRefToDialog() OVERRIDE;
48 virtual void ReleaseDialog() OVERRIDE; 49 virtual void ReleaseDialog() OVERRIDE;
49 50
50 private: 51 private:
51 friend struct content::BrowserThread::DeleteOnThread< 52 friend struct content::BrowserThread::DeleteOnThread<
52 content::BrowserThread::UI>; 53 content::BrowserThread::UI>;
53 friend class DeleteTask<PrintDialogGtk>; 54 friend class base::DeleteHelper<PrintDialogGtk>;
54 55
55 explicit PrintDialogGtk(PrintingContextGtk* context); 56 explicit PrintDialogGtk(PrintingContextGtk* context);
56 virtual ~PrintDialogGtk(); 57 virtual ~PrintDialogGtk();
57 58
58 // Handles dialog response. 59 // Handles dialog response.
59 CHROMEGTK_CALLBACK_1(PrintDialogGtk, void, OnResponse, int); 60 CHROMEGTK_CALLBACK_1(PrintDialogGtk, void, OnResponse, int);
60 61
61 // Prints document named |document_name|. 62 // Prints document named |document_name|.
62 void SendDocumentToPrinter(const string16& document_name); 63 void SendDocumentToPrinter(const string16& document_name);
63 64
(...skipping 18 matching lines...) Expand all
82 GtkPrintSettings* gtk_settings_; 83 GtkPrintSettings* gtk_settings_;
83 GtkPageSetup* page_setup_; 84 GtkPageSetup* page_setup_;
84 GtkPrinter* printer_; 85 GtkPrinter* printer_;
85 86
86 FilePath path_to_pdf_; 87 FilePath path_to_pdf_;
87 88
88 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); 89 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk);
89 }; 90 };
90 91
91 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 92 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/printing/print_system_task_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698