summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
diff options
context:
space:
mode:
authorrpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 07:18:07 +0000
committerrpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 07:18:07 +0000
commitcbecfa5f3d14e2ea47f8404ca12f40e3b9efcc88 (patch)
tree478059e82a7e6fc48b1bc63fc647e7f7a220e586 /chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
parent3a79fb9d836de16820d4533f7e32c72774ccdb89 (diff)
downloadchromium_src-cbecfa5f3d14e2ea47f8404ca12f40e3b9efcc88.zip
chromium_src-cbecfa5f3d14e2ea47f8404ca12f40e3b9efcc88.tar.gz
chromium_src-cbecfa5f3d14e2ea47f8404ca12f40e3b9efcc88.tar.bz2
Use ImageLoader instead of ImageLoadingTracker (Part 3)
BUG=163929 Review URL: https://chromiumcodereview.appspot.com/11857018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h')
-rw-r--r--chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
index d14625d..cc4d869 100644
--- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
+++ b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
@@ -9,7 +9,6 @@
#include "base/compiler_specific.h"
#include "base/memory/ref_counted.h"
#include "base/sequenced_task_runner_helpers.h"
-#include "chrome/browser/extensions/image_loading_tracker.h"
#include "chrome/browser/shell_integration.h"
#include "content/public/browser/browser_thread.h"
#include "googleurl/src/gurl.h"
@@ -31,6 +30,10 @@ namespace extensions {
class Extension;
}
+namespace gfx {
+class Image;
+}
+
class CreateApplicationShortcutsDialogGtk
: public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk,
BrowserThread::DeleteOnUIThread> {
@@ -104,8 +107,7 @@ class CreateWebApplicationShortcutsDialogGtk
};
class CreateChromeApplicationShortcutsDialogGtk
- : public CreateApplicationShortcutsDialogGtk,
- public ImageLoadingTracker::Observer {
+ : public CreateApplicationShortcutsDialogGtk {
public:
// Displays the dialog box to create application shortcuts for |app|.
static void Show(GtkWindow* parent, Profile* profile,
@@ -115,12 +117,6 @@ class CreateChromeApplicationShortcutsDialogGtk
Profile* profile,
const extensions::Extension* app);
- // Implement ImageLoadingTracker::Observer. |tracker_| is used to
- // load the app's icon. This method recieves the icon, and adds
- // it to the "Create Shortcut" dailog box.
- virtual void OnImageLoaded(const gfx::Image& image,
- const std::string& extension_id,
- int index) OVERRIDE;
protected:
virtual ~CreateChromeApplicationShortcutsDialogGtk() {}
@@ -129,9 +125,11 @@ class CreateChromeApplicationShortcutsDialogGtk
const ShellIntegration::ShortcutInfo& shortcut_info) OVERRIDE;
private:
+ void OnImageLoaded(const gfx::Image& image);
+
+ private:
const extensions::Extension* app_;
FilePath profile_path_;
- ImageLoadingTracker tracker_;
DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
};