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

Unified Diff: ash/accelerators/accelerator_controller_delegate_aura.cc

Issue 2274333002: ash: Move more code from Shelf to WmShelf (Closed)
Patch Set: tweak Created 4 years, 4 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
« no previous file with comments | « no previous file | ash/ash.gyp » ('j') | ash/common/shelf/shelf.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller_delegate_aura.cc
diff --git a/ash/accelerators/accelerator_controller_delegate_aura.cc b/ash/accelerators/accelerator_controller_delegate_aura.cc
index 5f6e56f8f736276cb26a2e385ee557cf907565ff..94b3a8ba17bfd20372cf0875e8fe037ce60d6bd8 100644
--- a/ash/accelerators/accelerator_controller_delegate_aura.cc
+++ b/ash/accelerators/accelerator_controller_delegate_aura.cc
@@ -18,6 +18,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/shelf.h"
#include "ash/common/shelf/shelf_widget.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/shell_delegate.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/system/status_area_widget.h"
@@ -142,12 +143,12 @@ void HandleFocusShelf() {
void HandleLaunchAppN(int n) {
base::RecordAction(UserMetricsAction("Accel_Launch_App"));
- Shelf::ForPrimaryDisplay()->LaunchAppIndexAt(n);
+ WmShelf::LaunchAppAtIndex(n);
}
void HandleLaunchLastApp() {
base::RecordAction(UserMetricsAction("Accel_Launch_Last_App"));
- Shelf::ForPrimaryDisplay()->LaunchAppIndexAt(-1);
+ WmShelf::LaunchAppAtIndex(-1);
}
bool CanHandleMagnifyScreen() {
« no previous file with comments | « no previous file | ash/ash.gyp » ('j') | ash/common/shelf/shelf.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698