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

Side by Side Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc

Issue 2771663002: mash: Refactor ChromeLauncherController's ShelfDelegate code. (Closed)
Patch Set: Address comments. Created 3 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h" 5 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h"
6 6
7 #include "ash/public/cpp/app_launch_id.h" 7 #include "ash/public/cpp/app_launch_id.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/profiles/profile_manager.h" 10 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void ChromeLauncherControllerMus::SetItemController( 46 void ChromeLauncherControllerMus::SetItemController(
47 ash::ShelfID id, 47 ash::ShelfID id,
48 LauncherItemController* controller) { 48 LauncherItemController* controller) {
49 NOTIMPLEMENTED(); 49 NOTIMPLEMENTED();
50 } 50 }
51 51
52 void ChromeLauncherControllerMus::CloseLauncherItem(ash::ShelfID id) { 52 void ChromeLauncherControllerMus::CloseLauncherItem(ash::ShelfID id) {
53 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
54 } 54 }
55 55
56 void ChromeLauncherControllerMus::Pin(ash::ShelfID id) {
57 NOTIMPLEMENTED();
58 }
59
60 void ChromeLauncherControllerMus::Unpin(ash::ShelfID id) {
61 NOTIMPLEMENTED();
62 }
63
64 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) { 56 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) {
65 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
66 return false; 58 return false;
67 } 59 }
68 60
69 void ChromeLauncherControllerMus::TogglePinned(ash::ShelfID id) {
70 NOTIMPLEMENTED();
71 }
72
73 void ChromeLauncherControllerMus::LockV1AppWithID(const std::string& app_id) { 61 void ChromeLauncherControllerMus::LockV1AppWithID(const std::string& app_id) {
74 NOTIMPLEMENTED(); 62 NOTIMPLEMENTED();
75 } 63 }
76 64
77 void ChromeLauncherControllerMus::UnlockV1AppWithID(const std::string& app_id) { 65 void ChromeLauncherControllerMus::UnlockV1AppWithID(const std::string& app_id) {
78 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
79 } 67 }
80 68
81 void ChromeLauncherControllerMus::Launch(ash::ShelfID id, int event_flags) { 69 void ChromeLauncherControllerMus::Launch(ash::ShelfID id, int event_flags) {
82 NOTIMPLEMENTED(); 70 NOTIMPLEMENTED();
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 item->image = *image.ToSkBitmap(); 237 item->image = *image.ToSkBitmap();
250 // TOOD(msw): Actually pin the item and install its delegate; this code is 238 // TOOD(msw): Actually pin the item and install its delegate; this code is
251 // unused at the moment. See http://crbug.com/647879 239 // unused at the moment. See http://crbug.com/647879
252 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); 240 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id);
253 if (app_icon_loader) { 241 if (app_icon_loader) {
254 app_icon_loader->FetchImage(app_id); 242 app_icon_loader->FetchImage(app_id);
255 app_icon_loader->UpdateImage(app_id); 243 app_icon_loader->UpdateImage(app_id);
256 } 244 }
257 } 245 }
258 } 246 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698