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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.h

Issue 2819413003: Refactor extension app icon. (Closed)
Patch Set: nit Created 3 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 void SetProfileForTest(Profile* profile); 251 void SetProfileForTest(Profile* profile);
252 252
253 // Helpers that call through to corresponding ShelfModel functions. 253 // Helpers that call through to corresponding ShelfModel functions.
254 void PinAppWithID(const std::string& app_id); 254 void PinAppWithID(const std::string& app_id);
255 bool IsAppPinned(const std::string& app_id); 255 bool IsAppPinned(const std::string& app_id);
256 void UnpinAppWithID(const std::string& app_id); 256 void UnpinAppWithID(const std::string& app_id);
257 257
258 // LauncherAppUpdater::Delegate: 258 // LauncherAppUpdater::Delegate:
259 void OnAppInstalled(content::BrowserContext* browser_context, 259 void OnAppInstalled(content::BrowserContext* browser_context,
260 const std::string& app_id) override; 260 const std::string& app_id) override;
261 void OnAppUpdated(content::BrowserContext* browser_context,
262 const std::string& app_id) override;
263 void OnAppUninstalledPrepared(content::BrowserContext* browser_context, 261 void OnAppUninstalledPrepared(content::BrowserContext* browser_context,
264 const std::string& app_id) override; 262 const std::string& app_id) override;
265 263
266 // AppIconLoaderDelegate: 264 // AppIconLoaderDelegate:
267 void OnAppImageUpdated(const std::string& app_id, 265 void OnAppImageUpdated(const std::string& app_id,
268 const gfx::ImageSkia& image) override; 266 const gfx::ImageSkia& image) override;
269 267
270 protected: 268 protected:
271 // Connects or reconnects to the mojom::ShelfController interface in ash. 269 // Connects or reconnects to the mojom::ShelfController interface in ash.
272 // Returns true if connected; virtual for unit tests. 270 // Returns true if connected; virtual for unit tests.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 using RunningAppListIds = std::vector<std::string>; 441 using RunningAppListIds = std::vector<std::string>;
444 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>; 442 using RunningAppListIdMap = std::map<std::string, RunningAppListIds>;
445 RunningAppListIdMap last_used_running_application_order_; 443 RunningAppListIdMap last_used_running_application_order_;
446 444
447 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_; 445 base::WeakPtrFactory<ChromeLauncherController> weak_ptr_factory_;
448 446
449 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 447 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
450 }; 448 };
451 449
452 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 450 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698