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

Side by Side Diff: chrome/browser/ui/views/create_application_shortcut_view.h

Issue 9586018: Add support for multiple icon sizes for Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 9 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) 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_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 class CreateChromeApplicationShortcutView 109 class CreateChromeApplicationShortcutView
110 : public CreateApplicationShortcutView, 110 : public CreateApplicationShortcutView,
111 public ImageLoadingTracker::Observer { 111 public ImageLoadingTracker::Observer {
112 public: 112 public:
113 CreateChromeApplicationShortcutView(Profile* profile, const Extension* app); 113 CreateChromeApplicationShortcutView(Profile* profile, const Extension* app);
114 virtual ~CreateChromeApplicationShortcutView(); 114 virtual ~CreateChromeApplicationShortcutView();
115 115
116 // Implement ImageLoadingTracker::Observer. |tracker_| is used to 116 // Implement ImageLoadingTracker::Observer. |tracker_| is used to
117 // load the app's icon. This method recieves the icon, and adds 117 // load the app's icon. This method recieves the icon, and adds
118 // it to the "Create Shortcut" dailog box. 118 // it to the "Create Shortcut" dailog box.
119 virtual void OnImageLoaded(SkBitmap* image, 119 virtual void OnImageLoaded(const gfx::Image& image,
120 const ExtensionResource& resource, 120 const std::string& extension_id,
121 int index) OVERRIDE; 121 int index) OVERRIDE;
122 122
123 private: 123 private:
124 const Extension* app_; 124 const Extension* app_;
125 ImageLoadingTracker tracker_; 125 ImageLoadingTracker tracker_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); 127 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView);
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ 130 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/browser_actions_container.cc ('k') | chrome/browser/ui/views/create_application_shortcut_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698