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

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

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)
Patch Set: Sync and rebase. 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"
11 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" 11 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h"
12 #include "chrome/browser/ui/ash/launcher/launcher_controller_helper.h" 12 #include "chrome/browser/ui/ash/launcher/launcher_controller_helper.h"
13 #include "extensions/grit/extensions_browser_resources.h" 13 #include "extensions/grit/extensions_browser_resources.h"
14 #include "ui/base/resource/resource_bundle.h" 14 #include "ui/base/resource/resource_bundle.h"
15 #include "ui/events/event_constants.h" 15 #include "ui/events/event_constants.h"
16 16
17 ChromeLauncherControllerMus::ChromeLauncherControllerMus() { 17 ChromeLauncherControllerMus::ChromeLauncherControllerMus() {
18 AttachProfile(ProfileManager::GetActiveUserProfile()); 18 AttachProfile(ProfileManager::GetActiveUserProfile());
19 } 19 }
20 20
21 ChromeLauncherControllerMus::~ChromeLauncherControllerMus() {} 21 ChromeLauncherControllerMus::~ChromeLauncherControllerMus() {}
22 22
23 ash::ShelfID ChromeLauncherControllerMus::CreateAppLauncherItem( 23 ash::ShelfID ChromeLauncherControllerMus::CreateAppLauncherItem(
24 LauncherItemController* controller, 24 std::unique_ptr<ash::ShelfItemDelegate> item_delegate,
25 ash::ShelfItemStatus status) { 25 ash::ShelfItemStatus status) {
26 NOTIMPLEMENTED(); 26 NOTIMPLEMENTED();
27 return ash::TYPE_UNDEFINED; 27 return ash::TYPE_UNDEFINED;
28 } 28 }
29 29
30 const ash::ShelfItem* ChromeLauncherControllerMus::GetItem( 30 const ash::ShelfItem* ChromeLauncherControllerMus::GetItem(
31 ash::ShelfID id) const { 31 ash::ShelfID id) const {
32 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
33 return nullptr; 33 return nullptr;
34 } 34 }
35 35
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::SetItemController( 46 void ChromeLauncherControllerMus::SetShelfItemDelegate(
47 ash::ShelfID id, 47 ash::ShelfID id,
48 LauncherItemController* controller) { 48 std::unique_ptr<ash::ShelfItemDelegate> item_delegate) {
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 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) { 56 bool ChromeLauncherControllerMus::IsPinned(ash::ShelfID id) {
57 NOTIMPLEMENTED(); 57 NOTIMPLEMENTED();
58 return false; 58 return false;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void ChromeLauncherControllerMus::ActiveUserChanged( 119 void ChromeLauncherControllerMus::ActiveUserChanged(
120 const std::string& user_email) { 120 const std::string& user_email) {
121 NOTIMPLEMENTED(); 121 NOTIMPLEMENTED();
122 } 122 }
123 123
124 void ChromeLauncherControllerMus::AdditionalUserAddedToSession( 124 void ChromeLauncherControllerMus::AdditionalUserAddedToSession(
125 Profile* profile) { 125 Profile* profile) {
126 NOTIMPLEMENTED(); 126 NOTIMPLEMENTED();
127 } 127 }
128 128
129 MenuItemList ChromeLauncherControllerMus::GetAppMenuItemsForTesting( 129 ash::MenuItemList ChromeLauncherControllerMus::GetAppMenuItemsForTesting(
130 const ash::ShelfItem& item) { 130 const ash::ShelfItem& item) {
131 NOTIMPLEMENTED(); 131 NOTIMPLEMENTED();
132 return MenuItemList(); 132 return ash::MenuItemList();
133 } 133 }
134 134
135 std::vector<content::WebContents*> 135 std::vector<content::WebContents*>
136 ChromeLauncherControllerMus::GetV1ApplicationsFromAppId( 136 ChromeLauncherControllerMus::GetV1ApplicationsFromAppId(
137 const std::string& app_id) { 137 const std::string& app_id) {
138 NOTIMPLEMENTED(); 138 NOTIMPLEMENTED();
139 return std::vector<content::WebContents*>(); 139 return std::vector<content::WebContents*>();
140 } 140 }
141 141
142 void ChromeLauncherControllerMus::ActivateShellApp(const std::string& app_id, 142 void ChromeLauncherControllerMus::ActivateShellApp(const std::string& app_id,
(...skipping 25 matching lines...) Expand all
168 NOTIMPLEMENTED(); 168 NOTIMPLEMENTED();
169 return base::string16(); 169 return base::string16();
170 } 170 }
171 171
172 BrowserShortcutLauncherItemController* 172 BrowserShortcutLauncherItemController*
173 ChromeLauncherControllerMus::GetBrowserShortcutLauncherItemController() { 173 ChromeLauncherControllerMus::GetBrowserShortcutLauncherItemController() {
174 NOTIMPLEMENTED(); 174 NOTIMPLEMENTED();
175 return nullptr; 175 return nullptr;
176 } 176 }
177 177
178 LauncherItemController* ChromeLauncherControllerMus::GetLauncherItemController( 178 ash::ShelfItemDelegate* ChromeLauncherControllerMus::GetShelfItemDelegate(
179 const ash::ShelfID id) { 179 const ash::ShelfID id) {
180 NOTIMPLEMENTED(); 180 NOTIMPLEMENTED();
181 return nullptr; 181 return nullptr;
182 } 182 }
183 183
184 bool ChromeLauncherControllerMus::ShelfBoundsChangesProbablyWithUser( 184 bool ChromeLauncherControllerMus::ShelfBoundsChangesProbablyWithUser(
185 ash::WmShelf* shelf, 185 ash::WmShelf* shelf,
186 const AccountId& account_id) const { 186 const AccountId& account_id) const {
187 NOTIMPLEMENTED(); 187 NOTIMPLEMENTED();
188 return false; 188 return false;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 item->image = *image.ToSkBitmap(); 234 item->image = *image.ToSkBitmap();
235 // 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
236 // unused at the moment. See http://crbug.com/647879 236 // unused at the moment. See http://crbug.com/647879
237 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id); 237 AppIconLoader* app_icon_loader = GetAppIconLoaderForApp(app_id);
238 if (app_icon_loader) { 238 if (app_icon_loader) {
239 app_icon_loader->FetchImage(app_id); 239 app_icon_loader->FetchImage(app_id);
240 app_icon_loader->UpdateImage(app_id); 240 app_icon_loader->UpdateImage(app_id);
241 } 241 }
242 } 242 }
243 } 243 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698