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

Side by Side Diff: chrome/browser/ui/gtk/create_application_shortcuts_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_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop_helpers.h"
12 #include "chrome/browser/extensions/image_loading_tracker.h" 13 #include "chrome/browser/extensions/image_loading_tracker.h"
13 #include "chrome/browser/shell_integration.h" 14 #include "chrome/browser/shell_integration.h"
14 #include "content/public/browser/browser_thread.h" 15 #include "content/public/browser/browser_thread.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 #include "ui/base/gtk/gtk_signal.h" 17 #include "ui/base/gtk/gtk_signal.h"
17 18
18 using content::BrowserThread; 19 using content::BrowserThread;
19 20
20 typedef struct _GdkPixbuf GdkPixbuf; 21 typedef struct _GdkPixbuf GdkPixbuf;
21 typedef struct _GtkWidget GtkWidget; 22 typedef struct _GtkWidget GtkWidget;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 GdkPixbuf* favicon_pixbuf_; 66 GdkPixbuf* favicon_pixbuf_;
66 67
67 // Dialog box that allows the user to create an application shortcut. 68 // Dialog box that allows the user to create an application shortcut.
68 GtkWidget* create_dialog_; 69 GtkWidget* create_dialog_;
69 70
70 // Dialog box that shows the error message. 71 // Dialog box that shows the error message.
71 GtkWidget* error_dialog_; 72 GtkWidget* error_dialog_;
72 73
73 private: 74 private:
74 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>; 75 friend struct BrowserThread::DeleteOnThread<BrowserThread::UI>;
75 friend class DeleteTask<CreateApplicationShortcutsDialogGtk>; 76 friend class base::DeleteHelper<CreateApplicationShortcutsDialogGtk>;
76 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutsDialogGtk); 77 DISALLOW_COPY_AND_ASSIGN(CreateApplicationShortcutsDialogGtk);
77 }; 78 };
78 79
79 class CreateWebApplicationShortcutsDialogGtk 80 class CreateWebApplicationShortcutsDialogGtk
80 : public CreateApplicationShortcutsDialogGtk { 81 : public CreateApplicationShortcutsDialogGtk {
81 public: 82 public:
82 // Displays the dialog box to create application shortcuts for |tab_contents|. 83 // Displays the dialog box to create application shortcuts for |tab_contents|.
83 static void Show(GtkWindow* parent, TabContentsWrapper* tab_contents); 84 static void Show(GtkWindow* parent, TabContentsWrapper* tab_contents);
84 85
85 CreateWebApplicationShortcutsDialogGtk(GtkWindow* parent, 86 CreateWebApplicationShortcutsDialogGtk(GtkWindow* parent,
(...skipping 28 matching lines...) Expand all
114 const ExtensionResource& resource, 115 const ExtensionResource& resource,
115 int index) OVERRIDE; 116 int index) OVERRIDE;
116 117
117 private: 118 private:
118 const Extension* app_; 119 const Extension* app_;
119 ImageLoadingTracker tracker_; 120 ImageLoadingTracker tracker_;
120 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk); 121 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
121 }; 122 };
122 123
123 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 124 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/webui/chrome_url_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698