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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: cleanup Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 6b9336da3fde20273256ac2106206f2e81a27fc4..04f827998689b25ccaff776a3a3e22edb00f3137 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -20,8 +20,8 @@
#include "ash/root_window_controller.h"
#include "ash/rotator/window_rotation.h"
#include "ash/session/session_controller.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_widget.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/shell_port.h"
@@ -205,18 +205,18 @@ void HandleRotatePaneFocus(FocusCycler::Direction direction) {
void HandleFocusShelf() {
base::RecordAction(UserMetricsAction("Accel_Focus_Shelf"));
// TODO(jamescook): Should this be GetRootWindowForNewWindows()?
- WmShelf* shelf = WmShelf::ForWindow(Shell::GetPrimaryRootWindow());
+ Shelf* shelf = Shelf::ForWindow(Shell::GetPrimaryRootWindow());
Shell::Get()->focus_cycler()->FocusWidget(shelf->shelf_widget());
}
void HandleLaunchAppN(int n) {
base::RecordAction(UserMetricsAction("Accel_Launch_App"));
- WmShelf::LaunchShelfItem(n);
+ Shelf::LaunchShelfItem(n);
}
void HandleLaunchLastApp() {
base::RecordAction(UserMetricsAction("Accel_Launch_Last_App"));
- WmShelf::LaunchShelfItem(-1);
+ Shelf::LaunchShelfItem(-1);
}
void HandleMediaNextTrack() {
@@ -319,7 +319,7 @@ void HandleShowKeyboardOverlay() {
bool CanHandleShowMessageCenterBubble() {
aura::Window* target_root = Shell::GetRootWindowForNewWindows();
StatusAreaWidget* status_area_widget =
- WmShelf::ForWindow(target_root)->shelf_widget()->status_area_widget();
+ Shelf::ForWindow(target_root)->shelf_widget()->status_area_widget();
return status_area_widget &&
status_area_widget->web_notification_tray()->visible();
}
@@ -328,7 +328,7 @@ void HandleShowMessageCenterBubble() {
base::RecordAction(UserMetricsAction("Accel_Show_Message_Center_Bubble"));
aura::Window* target_root = Shell::GetRootWindowForNewWindows();
StatusAreaWidget* status_area_widget =
- WmShelf::ForWindow(target_root)->shelf_widget()->status_area_widget();
+ Shelf::ForWindow(target_root)->shelf_widget()->status_area_widget();
if (status_area_widget) {
WebNotificationTray* notification_tray =
status_area_widget->web_notification_tray();
@@ -445,7 +445,7 @@ void HandleShowImeMenuBubble() {
base::RecordAction(UserMetricsAction("Accel_Show_Ime_Menu_Bubble"));
StatusAreaWidget* status_area_widget =
- WmShelf::ForWindow(Shell::GetPrimaryRootWindow())->GetStatusAreaWidget();
+ Shelf::ForWindow(Shell::GetPrimaryRootWindow())->GetStatusAreaWidget();
if (status_area_widget) {
ImeMenuTray* ime_menu_tray = status_area_widget->ime_menu_tray();
if (ime_menu_tray && ime_menu_tray->visible() &&

Powered by Google App Engine
This is Rietveld 408576698