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

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: more fixes 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
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shelf/overflow_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller.cc
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index e439ac3b18a886fd45f20609035243d7c5bd58ea..a7a592fb48d26966043698722f2808d72e514708 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -269,7 +269,7 @@ void RootWindowController::CreateForVirtualKeyboardDisplay(
}
// static
-RootWindowController* RootWindowController::ForLauncher(aura::Window* window) {
+RootWindowController* RootWindowController::ForShelf(aura::Window* window) {
return GetRootWindowController(window->GetRootWindow());
}
@@ -374,18 +374,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());
}
@@ -677,9 +677,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()));
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shelf/overflow_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698