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

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

Issue 342068: Third patch in getting rid of caching MessageLoop pointers and always using C... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 12
13 class Browser; 13 class Browser;
14 class MessageLoop;
15 14
16 typedef struct _GtkPrintJob GtkPrintJob; 15 typedef struct _GtkPrintJob GtkPrintJob;
17 16
18 // Currently this dialog only allows the user to choose a printer. 17 // Currently this dialog only allows the user to choose a printer.
19 class PrintDialogGtk { 18 class PrintDialogGtk {
20 public: 19 public:
21 // Called on the IO thread. Posts the dialog creation action on the given 20 // Called on the IO thread.
22 // loop. 21 static void CreatePrintDialogForPdf(const FilePath& path);
23 static void CreatePrintDialogForPdf(const FilePath& path, MessageLoop* loop);
24 22
25 private: 23 private:
26 explicit PrintDialogGtk(const FilePath& path_to_pdf); 24 explicit PrintDialogGtk(const FilePath& path_to_pdf);
27 ~PrintDialogGtk(); 25 ~PrintDialogGtk();
28 26
29 static void CreateDialogImpl(const FilePath& path); 27 static void CreateDialogImpl(const FilePath& path);
30 28
31 static void OnResponseThunk(GtkDialog* dialog, 29 static void OnResponseThunk(GtkDialog* dialog,
32 gint response_id, 30 gint response_id,
33 gpointer user_data) { 31 gpointer user_data) {
(...skipping 12 matching lines...) Expand all
46 FilePath path_to_pdf_; 44 FilePath path_to_pdf_;
47 45
48 GtkWidget* dialog_; 46 GtkWidget* dialog_;
49 47
50 Browser* browser_; 48 Browser* browser_;
51 49
52 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk); 50 DISALLOW_COPY_AND_ASSIGN(PrintDialogGtk);
53 }; 51 };
54 52
55 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_ 53 #endif // CHROME_BROWSER_PRINTING_PRINT_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/desktop_notification_service.cc ('k') | chrome/browser/printing/print_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698