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

Side by Side Diff: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h

Issue 12881003: ShortcutInfo::favicon is now a gfx::ImageFamily instead of gfx::Image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: CopyGdkPixbuf and TODO. Created 7 years, 8 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
OLDNEW
1 // Copyright (c) 2012 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 13 matching lines...) Expand all
24 24
25 namespace content { 25 namespace content {
26 class WebContents; 26 class WebContents;
27 } 27 }
28 28
29 namespace extensions { 29 namespace extensions {
30 class Extension; 30 class Extension;
31 } 31 }
32 32
33 namespace gfx { 33 namespace gfx {
34 class Image; 34 class ImageFamily;
35 } 35 }
36 36
37 class CreateApplicationShortcutsDialogGtk 37 class CreateApplicationShortcutsDialogGtk
38 : public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk, 38 : public base::RefCountedThreadSafe<CreateApplicationShortcutsDialogGtk,
39 BrowserThread::DeleteOnUIThread> { 39 BrowserThread::DeleteOnUIThread> {
40 protected: 40 protected:
41 explicit CreateApplicationShortcutsDialogGtk(GtkWindow* parent); 41 explicit CreateApplicationShortcutsDialogGtk(GtkWindow* parent);
42 virtual ~CreateApplicationShortcutsDialogGtk(); 42 virtual ~CreateApplicationShortcutsDialogGtk();
43 43
44 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void, 44 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void,
45 OnCreateDialogResponse, int); 45 OnCreateDialogResponse, int);
46 46
47 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void, 47 CHROMEGTK_CALLBACK_1(CreateApplicationShortcutsDialogGtk, void,
48 OnErrorDialogResponse, int); 48 OnErrorDialogResponse, int);
49 49
50 CHROMEGTK_CALLBACK_0(CreateApplicationShortcutsDialogGtk, void, 50 CHROMEGTK_CALLBACK_0(CreateApplicationShortcutsDialogGtk, void,
51 OnToggleCheckbox); 51 OnToggleCheckbox);
52 52
53 virtual void CreateDialogBox(GtkWindow* parent); 53 virtual void CreateDialogBox(GtkWindow* parent);
54 virtual void CreateIconPixBuf(const gfx::Image& image); 54 virtual void CreateIconPixBuf(const gfx::ImageFamily& image);
55 55
56 // This method is called after a shortcut is created. 56 // This method is called after a shortcut is created.
57 // Subclasses can override it to take some action at that time. 57 // Subclasses can override it to take some action at that time.
58 virtual void OnCreatedShortcut(void) {} 58 virtual void OnCreatedShortcut(void) {}
59 59
60 virtual void CreateDesktopShortcut( 60 virtual void CreateDesktopShortcut(
61 const ShellIntegration::ShortcutInfo& shortcut_info, 61 const ShellIntegration::ShortcutInfo& shortcut_info,
62 const ShellIntegration::ShortcutLocations& creation_locations); 62 const ShellIntegration::ShortcutLocations& creation_locations);
63 virtual void ShowErrorDialog(); 63 virtual void ShowErrorDialog();
64 64
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 void OnShortcutInfoLoaded( 131 void OnShortcutInfoLoaded(
132 const ShellIntegration::ShortcutInfo& shortcut_info); 132 const ShellIntegration::ShortcutInfo& shortcut_info);
133 133
134 private: 134 private:
135 const extensions::Extension* app_; 135 const extensions::Extension* app_;
136 base::FilePath profile_path_; 136 base::FilePath profile_path_;
137 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk); 137 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
138 }; 138 };
139 139
140 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_ 140 #endif // CHROME_BROWSER_UI_GTK_CREATE_APPLICATION_SHORTCUTS_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_integration_linux.cc ('k') | chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698