diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 13:07:19 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-11 13:07:19 +0000 |
commit | b913a3acaaebf26e54ca13dc37e3c21527e841f3 (patch) | |
tree | deeb025f24a5709d9272e3da45b558f27cb4eb2d /ash/shell.h | |
parent | ff1779bcb9314565caab15f8bfb44e57d9744b33 (diff) | |
download | chromium_src-b913a3acaaebf26e54ca13dc37e3c21527e841f3.zip chromium_src-b913a3acaaebf26e54ca13dc37e3c21527e841f3.tar.gz chromium_src-b913a3acaaebf26e54ca13dc37e3c21527e841f3.tar.bz2 |
- Show app list on 2nd launcher
- Share the launcher mode/delegate in multiple launchers.
This CL moves the launcher mode/delegate to Shell
- Initialize Display objects before creating RootWindow
for 2nd as it'll be used during creation.
I'll add tests in next CL, as it crashes without https://codereview.chromium.org/11515004/.
BUG=145978
TEST=none
Review URL: https://chromiumcodereview.appspot.com/11465037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172310 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r-- | ash/shell.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/ash/shell.h b/ash/shell.h index 3a21dfd..0a1fe5f 100644 --- a/ash/shell.h +++ b/ash/shell.h @@ -71,6 +71,8 @@ class DesktopBackgroundController; class DisplayController; class HighContrastController; class Launcher; +class LauncherDelegate; +class LauncherModel; class MagnificationController; class NestedDispatcherController; class PartialMagnificationController; @@ -191,8 +193,10 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate, // |location_in_screen| (in screen coordinates). void ShowContextMenu(const gfx::Point& location_in_screen); - // Toggles app list. - void ToggleAppList(); + // Toggles the app list. |window| specifies in which display the app + // list should be shown. If this is NULL, the active root window + // will be used. + void ToggleAppList(aura::Window* anchor); // Returns app list target visibility. bool GetAppListTargetVisibility() const; @@ -366,6 +370,9 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate, // Returns the system tray on primary display. SystemTray* GetPrimarySystemTray(); + // Returns the launcher delegate, creating if necesary. + LauncherDelegate* GetLauncherDelegate(); + // TODO(stevenjb): Rename to system_tray_delegate(). SystemTrayDelegate* tray_delegate() { return system_tray_delegate_.get(); @@ -375,6 +382,10 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate, return system_tray_notifier_.get(); } + LauncherModel* launcher_model() { + return launcher_model_.get(); + } + static void set_initially_hide_cursor(bool hide) { initially_hide_cursor_ = hide; } @@ -468,6 +479,9 @@ class ASH_EXPORT Shell : internal::SystemModalContainerEventFilterDelegate, scoped_ptr<SystemTrayNotifier> system_tray_notifier_; scoped_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; scoped_ptr<CapsLockDelegate> caps_lock_delegate_; + scoped_ptr<LauncherDelegate> launcher_delegate_; + + scoped_ptr<LauncherModel> launcher_model_; scoped_ptr<internal::AppListController> app_list_controller_; |