OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |