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

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

Issue 2800263002: Revert of mash: Remove ChromeLauncherController's |id_to_item_controller_map_|. (Closed)
Patch Set: Created 3 years, 8 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 25 matching lines...) Expand all
36 void ChromeLauncherControllerMus::SetItemType(ash::ShelfID id, 36 void ChromeLauncherControllerMus::SetItemType(ash::ShelfID id,
37 ash::ShelfItemType type) { 37 ash::ShelfItemType type) {
38 NOTIMPLEMENTED(); 38 NOTIMPLEMENTED();
39 } 39 }
40 40
41 void ChromeLauncherControllerMus::SetItemStatus(ash::ShelfID id, 41 void ChromeLauncherControllerMus::SetItemStatus(ash::ShelfID id,
42 ash::ShelfItemStatus status) { 42 ash::ShelfItemStatus status) {
43 NOTIMPLEMENTED(); 43 NOTIMPLEMENTED();
44 } 44 }
45 45
46 void ChromeLauncherControllerMus::SetShelfItemDelegate(
47 ash::ShelfID id,
48 std::unique_ptr<ash::ShelfItemDelegate> item_delegate) {
49 NOTIMPLEMENTED();
50 }
51
46 void ChromeLauncherControllerMus::CloseLauncherItem(ash::ShelfID id) { 52 void ChromeLauncherControllerMus::CloseLauncherItem(ash::ShelfID id) {
47 NOTIMPLEMENTED(); 53 NOTIMPLEMENTED();
48 } 54 }
49 55
50 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) { 56 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) {
51 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
52 return false; 58 return false;
53 } 59 }
54 60
55 void ChromeLauncherControllerMus::SetV1AppStatus(const std::string& app_id, 61 void ChromeLauncherControllerMus::SetV1AppStatus(const std::string& app_id,
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 content::WebContents* web_contents) const { 167 content::WebContents* web_contents) const {
162 NOTIMPLEMENTED(); 168 NOTIMPLEMENTED();
163 return base::string16(); 169 return base::string16();
164 } 170 }
165 171
166 BrowserShortcutLauncherItemController* 172 BrowserShortcutLauncherItemController*
167 ChromeLauncherControllerMus::GetBrowserShortcutLauncherItemController() { 173 ChromeLauncherControllerMus::GetBrowserShortcutLauncherItemController() {
168 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
169 return nullptr; 175 return nullptr;
170 } 176 }
177
178 ash::ShelfItemDelegate* ChromeLauncherControllerMus::GetShelfItemDelegate(
179 const ash::ShelfID id) {
180 NOTIMPLEMENTED();
181 return nullptr;
182 }
171 183
172 bool ChromeLauncherControllerMus::ShelfBoundsChangesProbablyWithUser( 184 bool ChromeLauncherControllerMus::ShelfBoundsChangesProbablyWithUser(
173 ash::WmShelf* shelf, 185 ash::WmShelf* shelf,
174 const AccountId& account_id) const { 186 const AccountId& account_id) const {
175 NOTIMPLEMENTED(); 187 NOTIMPLEMENTED();
176 return false; 188 return false;
177 } 189 }
178 190
179 void ChromeLauncherControllerMus::OnUserProfileReadyToSwitch(Profile* profile) { 191 void ChromeLauncherControllerMus::OnUserProfileReadyToSwitch(Profile* profile) {
180 NOTIMPLEMENTED(); 192 NOTIMPLEMENTED();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 item->image = *image.ToSkBitmap(); 234 item->image = *image.ToSkBitmap();
223 // TOOD(msw): Actually pin the item and install its delegate; this code is 235 // TOOD(msw): Actually pin the item and install its delegate; this code is
224 // unused at the moment. See http://crbug.com/647879 236 // unused at the moment. See http://crbug.com/647879
225 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); 237 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id);
226 if (app_icon_loader) { 238 if (app_icon_loader) {
227 app_icon_loader->FetchImage(app_id); 239 app_icon_loader->FetchImage(app_id);
228 app_icon_loader->UpdateImage(app_id); 240 app_icon_loader->UpdateImage(app_id);
229 } 241 }
230 } 242 }
231 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698