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

Side by Side Diff: chrome/browser/ui/views/aura/launcher/chrome_launcher_delegate.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_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 bool IsOpen(ash::LauncherID id); 128 bool IsOpen(ash::LauncherID id);
129 129
130 // Returns the type of app for the specified id. 130 // Returns the type of app for the specified id.
131 AppType GetAppType(ash::LauncherID id); 131 AppType GetAppType(ash::LauncherID id);
132 132
133 // Returns the id of the app for the specified tab. 133 // Returns the id of the app for the specified tab.
134 std::string GetAppID(TabContentsWrapper* tab); 134 std::string GetAppID(TabContentsWrapper* tab);
135 135
136 // Sets the image for an app tab. This is intended to be invoked from the 136 // Sets the image for an app tab. This is intended to be invoked from the
137 // AppIconLoader. 137 // AppIconLoader.
138 void SetAppImage(const std::string& app_id, SkBitmap* image); 138 void SetAppImage(const std::string& app_id, const SkBitmap* image);
139 139
140 ash::LauncherModel* model() { return model_; } 140 ash::LauncherModel* model() { return model_; }
141 141
142 // ash::LauncherDelegate overrides: 142 // ash::LauncherDelegate overrides:
143 virtual void CreateNewWindow() OVERRIDE; 143 virtual void CreateNewWindow() OVERRIDE;
144 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE; 144 virtual void ItemClicked(const ash::LauncherItem& item) OVERRIDE;
145 virtual int GetBrowserShortcutResourceId() OVERRIDE; 145 virtual int GetBrowserShortcutResourceId() OVERRIDE;
146 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE; 146 virtual string16 GetTitle(const ash::LauncherItem& item) OVERRIDE;
147 virtual ui::MenuModel* CreateContextMenu( 147 virtual ui::MenuModel* CreateContextMenu(
148 const ash::LauncherItem& item) OVERRIDE; 148 const ash::LauncherItem& item) OVERRIDE;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 // Used to load the image for an app tab. 219 // Used to load the image for an app tab.
220 scoped_ptr<AppIconLoader> app_icon_loader_; 220 scoped_ptr<AppIconLoader> app_icon_loader_;
221 221
222 content::NotificationRegistrar registrar_; 222 content::NotificationRegistrar registrar_;
223 223
224 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate); 224 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherDelegate);
225 }; 225 };
226 226
227 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_ 227 #endif // CHROME_BROWSER_UI_VIEWS_AURA_LAUNCHER_CHROME_LAUNCHER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698