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

Unified Diff: ash/root_window_controller.cc

Issue 115113006: Rename Launcher to Shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ShelfTestAPI Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 0ab912a317784014348898e8f4342bc0f4581141..0a9ecabc51a3553ab82e0fb661d811e51d5ae972 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -237,7 +237,7 @@ void RootWindowController::CreateForVirtualKeyboardDisplay(
}
// static
-RootWindowController* RootWindowController::ForLauncher(aura::Window* window) {
+RootWindowController* RootWindowController::ForShelf(aura::Window* window) {
return GetRootWindowController(window->GetRootWindow());
}
@@ -342,18 +342,18 @@ const aura::Window* RootWindowController::GetContainer(int container_id) const {
return root_window_->window()->GetChildById(container_id);
}
-void RootWindowController::ShowLauncher() {
- if (!shelf_->launcher())
+void RootWindowController::ShowShelf() {
+ if (!shelf_->shelf())
return;
- shelf_->launcher()->SetVisible(true);
+ shelf_->shelf()->SetVisible(true);
shelf_->status_area_widget()->Show();
}
-void RootWindowController::OnLauncherCreated() {
+void RootWindowController::OnShelfCreated() {
if (panel_layout_manager_)
- panel_layout_manager_->SetLauncher(shelf_->launcher());
+ panel_layout_manager_->SetShelf(shelf_->shelf());
if (docked_layout_manager_) {
- docked_layout_manager_->SetLauncher(shelf_->launcher());
+ docked_layout_manager_->SetShelf(shelf_->shelf());
if (shelf_->shelf_layout_manager())
docked_layout_manager_->AddObserver(shelf_->shelf_layout_manager());
}
@@ -645,9 +645,9 @@ void RootWindowController::Init(RootWindowType root_window_type,
root_window_->window());
root_window_->host()->Show();
- // Create a launcher if a user is already logged in.
+ // Create a shelf if a user is already logged in.
if (shell->session_state_delegate()->NumberOfLoggedInUsers())
- shelf()->CreateLauncher();
+ shelf()->CreateShelf();
}
solo_window_tracker_.reset(new SoloWindowTracker(root_window_.get()));

Powered by Google App Engine
This is Rietveld 408576698