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

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

Issue 2293183002: ash: Remove ash::Shelf in favor of ash::WmShelf (Closed)
Patch Set: rebase again Created 4 years, 3 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/common/shelf/shelf_item_delegate.h" 11 #include "ash/common/shelf/shelf_item_delegate.h"
12 #include "ash/common/shelf/shelf_item_types.h" 12 #include "ash/common/shelf/shelf_item_types.h"
13 #include "base/memory/scoped_vector.h" 13 #include "base/memory/scoped_vector.h"
14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" 14 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h" 15 #include "chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item.h"
16 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h" 16 #include "chrome/browser/ui/ash/launcher/chrome_launcher_types.h"
17 #include "extensions/common/constants.h" 17 #include "extensions/common/constants.h"
18 18
19 class AccountId; 19 class AccountId;
20 class ArcAppDeferredLauncherController; 20 class ArcAppDeferredLauncherController;
21 class Browser; 21 class Browser;
22 class BrowserShortcutLauncherItemController; 22 class BrowserShortcutLauncherItemController;
23 class GURL; 23 class GURL;
24 class LauncherItemController; 24 class LauncherItemController;
25 25
26 namespace ash { 26 namespace ash {
27 class Shelf; 27 class WmShelf;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 class WebContents; 31 class WebContents;
32 } 32 }
33 33
34 namespace gfx { 34 namespace gfx {
35 class Image; 35 class Image;
36 } 36 }
37 37
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 GetBrowserShortcutLauncherItemController() = 0; 227 GetBrowserShortcutLauncherItemController() = 0;
228 228
229 virtual LauncherItemController* GetLauncherItemController( 229 virtual LauncherItemController* GetLauncherItemController(
230 const ash::ShelfID id) = 0; 230 const ash::ShelfID id) = 0;
231 231
232 // Check if the shelf visibility (location, visibility) will change with a new 232 // Check if the shelf visibility (location, visibility) will change with a new
233 // user profile or not. However, since the full visibility calculation of the 233 // user profile or not. However, since the full visibility calculation of the
234 // shelf cannot be performed here, this is only a probability used for 234 // shelf cannot be performed here, this is only a probability used for
235 // animation predictions. 235 // animation predictions.
236 virtual bool ShelfBoundsChangesProbablyWithUser( 236 virtual bool ShelfBoundsChangesProbablyWithUser(
237 ash::Shelf* shelf, 237 ash::WmShelf* shelf,
238 const AccountId& account_id) const = 0; 238 const AccountId& account_id) const = 0;
239 239
240 // Called when the user profile is fully loaded and ready to switch to. 240 // Called when the user profile is fully loaded and ready to switch to.
241 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0; 241 virtual void OnUserProfileReadyToSwitch(Profile* profile) = 0;
242 242
243 // Controller to launch Arc apps in deferred mode. 243 // Controller to launch Arc apps in deferred mode.
244 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0; 244 virtual ArcAppDeferredLauncherController* GetArcDeferredLauncher() = 0;
245 245
246 protected: 246 protected:
247 ChromeLauncherController(); 247 ChromeLauncherController();
248 248
249 private: 249 private:
250 static ChromeLauncherController* instance_; 250 static ChromeLauncherController* instance_;
251 251
252 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController); 252 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherController);
253 }; 253 };
254 254
255 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_ 255 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_CHROME_LAUNCHER_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698