diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 04:19:38 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 04:19:38 +0000 |
commit | 864b5855c27945ea0f099bf82d44f41a041851ff (patch) | |
tree | 8f3737b10405128113a113f373f4472727f149de /ash/shell.cc | |
parent | 7a22adbf507b6f35788ea89f12bbd2c1b96d451b (diff) | |
download | chromium_src-864b5855c27945ea0f099bf82d44f41a041851ff.zip chromium_src-864b5855c27945ea0f099bf82d44f41a041851ff.tar.gz chromium_src-864b5855c27945ea0f099bf82d44f41a041851ff.tar.bz2 |
Rename Launcher to Shelf.
- move launcher* from launcher to shelf.
- rename to launcher.* to shelf.* and launcher_unittest.cc to
shelf_unittest.cc
- rename LauncherTestAPI to ShelfTestAPI.
- rename to launcher_test_api.* to shelf_test_api.*
BUG=248353
TEST=None, no functional changes
R=jamescook@chromium.org,harrym@chromium.org
TBR=sky
Review URL: https://codereview.chromium.org/115113006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241794 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.cc')
-rw-r--r-- | ash/shell.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ash/shell.cc b/ash/shell.cc index 607601d..d5e7a6e 100644 --- a/ash/shell.cc +++ b/ash/shell.cc @@ -344,7 +344,7 @@ void Shell::OnLoginStateChanged(user::LoginStatus status) { } void Shell::OnLoginUserProfilePrepared() { - CreateLauncher(); + CreateShelf(); CreateKeyboard(); } @@ -375,11 +375,11 @@ void Shell::OnLockStateChanged(bool locked) { #endif } -void Shell::CreateLauncher() { +void Shell::CreateShelf() { RootWindowControllerList controllers = GetAllRootWindowControllers(); for (RootWindowControllerList::iterator iter = controllers.begin(); iter != controllers.end(); ++iter) - (*iter)->shelf()->CreateLauncher(); + (*iter)->shelf()->CreateShelf(); } void Shell::CreateKeyboard() { @@ -395,11 +395,11 @@ void Shell::CreateKeyboard() { } } -void Shell::ShowLauncher() { +void Shell::ShowShelf() { RootWindowControllerList controllers = GetAllRootWindowControllers(); for (RootWindowControllerList::iterator iter = controllers.begin(); iter != controllers.end(); ++iter) - (*iter)->ShowLauncher(); + (*iter)->ShowShelf(); } void Shell::AddShellObserver(ShellObserver* observer) { @@ -420,19 +420,19 @@ void Shell::UpdateShelfVisibility() { void Shell::SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, aura::Window* root_window) { - ash::internal::ShelfLayoutManager::ForLauncher(root_window)-> + ash::internal::ShelfLayoutManager::ForShelf(root_window)-> SetAutoHideBehavior(behavior); } ShelfAutoHideBehavior Shell::GetShelfAutoHideBehavior( aura::Window* root_window) const { - return ash::internal::ShelfLayoutManager::ForLauncher(root_window)-> + return ash::internal::ShelfLayoutManager::ForShelf(root_window)-> auto_hide_behavior(); } void Shell::SetShelfAlignment(ShelfAlignment alignment, aura::Window* root_window) { - if (ash::internal::ShelfLayoutManager::ForLauncher(root_window)-> + if (ash::internal::ShelfLayoutManager::ForShelf(root_window)-> SetAlignment(alignment)) { FOR_EACH_OBSERVER( ShellObserver, observers_, OnShelfAlignmentChanged(root_window)); @@ -619,8 +619,8 @@ Shell::~Shell() { RemovePreTargetHandler(tooltip_controller_.get()); // AppList needs to be released before shelf layout manager, which is - // destroyed with launcher container in the loop below. However, app list - // container is now on top of launcher container and released after it. + // destroyed with shelf container in the loop below. However, app list + // container is now on top of shelf container and released after it. // TODO(xiyuan): Move it back when app list container is no longer needed. app_list_controller_.reset(); @@ -754,7 +754,7 @@ void Shell::Init() { display_manager_->InitDefaultDisplay(); // Install the custom factory first so that views::FocusManagers for Tray, - // Launcher, and WallPaper could be created by the factory. + // Shelf, and WallPaper could be created by the factory. views::FocusManagerFactory::Install(new AshFocusManagerFactory); // Env creates the compositor. Historically it seems to have been implicitly |