OLD | NEW |
1 // Copyright (c) 2011 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_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 "base/message_loop_helpers.h" |
13 #include "chrome/browser/extensions/image_loading_tracker.h" | 13 #include "chrome/browser/extensions/image_loading_tracker.h" |
14 #include "chrome/browser/shell_integration.h" | 14 #include "chrome/browser/shell_integration.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 #include "ui/base/gtk/gtk_signal.h" | 17 #include "ui/base/gtk/gtk_signal.h" |
18 | 18 |
19 using content::BrowserThread; | 19 using content::BrowserThread; |
20 | 20 |
21 typedef struct _GdkPixbuf GdkPixbuf; | 21 typedef struct _GdkPixbuf GdkPixbuf; |
22 typedef struct _GtkWidget GtkWidget; | 22 typedef struct _GtkWidget GtkWidget; |
23 typedef struct _GtkWindow GtkWindow; | 23 typedef struct _GtkWindow GtkWindow; |
24 | 24 |
25 class Extension; | 25 class Extension; |
26 class TabContents; | |
27 class TabContentsWrapper; | 26 class TabContentsWrapper; |
28 | 27 |
29 class CreateApplicationShortcutsDialogGtk | 28 class CreateApplicationShortcutsDialogGtk |
30 : public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk, | 29 : public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk, |
31 BrowserThread::DeleteOnUIThread> { | 30 BrowserThread::DeleteOnUIThread> { |
32 protected: | 31 protected: |
33 explicit CreateApplicationShortcutsDialogGtk(GtkWindow* parent); | 32 explicit CreateApplicationShortcutsDialogGtk(GtkWindow* parent); |
34 virtual ~CreateApplicationShortcutsDialogGtk(); | 33 virtual ~CreateApplicationShortcutsDialogGtk(); |
35 | 34 |
36 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void, | 35 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void, |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 const std::string& extension_id, | 114 const std::string& extension_id, |
116 int index) OVERRIDE; | 115 int index) OVERRIDE; |
117 | 116 |
118 private: | 117 private: |
119 const Extension* app_; | 118 const Extension* app_; |
120 ImageLoadingTracker tracker_; | 119 ImageLoadingTracker tracker_; |
121 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk); | 120 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk); |
122 }; | 121 }; |
123 | 122 |
124 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ | 123 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ |
OLD | NEW |