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

Unified Diff: ash/accelerators/accelerator_controller.cc

Issue 2901413005: [mus+ash] Removes WmWindow from ash/accelerators (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/accelerators (rebased) 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
« no previous file with comments | « no previous file | ash/accelerators/accelerator_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.cc
diff --git a/ash/accelerators/accelerator_controller.cc b/ash/accelerators/accelerator_controller.cc
index 0e592a0ff1e277768def4e89a04cfc2a6dc69a73..9ca596bb94987cba1efaac18577ed5a5006848c5 100644
--- a/ash/accelerators/accelerator_controller.cc
+++ b/ash/accelerators/accelerator_controller.cc
@@ -45,7 +45,6 @@
#include "ash/wm/window_state.h"
#include "ash/wm/window_util.h"
#include "ash/wm/wm_event.h"
-#include "ash/wm_window.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "base/strings/string_split.h"
@@ -424,10 +423,10 @@ void HandleToggleOverview() {
}
bool CanHandleWindowSnap() {
- WmWindow* active_window = WmWindow::Get(wm::GetActiveWindow());
+ aura::Window* active_window = wm::GetActiveWindow();
if (!active_window)
return false;
- wm::WindowState* window_state = active_window->GetWindowState();
+ wm::WindowState* window_state = wm::GetWindowState(active_window);
// Disable window snapping shortcut key for full screen window due to
// http://crbug.com/135487.
return (window_state && window_state->IsUserPositionable() &&
@@ -443,9 +442,9 @@ void HandleWindowSnap(AcceleratorAction action) {
const wm::WMEvent event(action == WINDOW_CYCLE_SNAP_LEFT
? wm::WM_EVENT_CYCLE_SNAP_LEFT
: wm::WM_EVENT_CYCLE_SNAP_RIGHT);
- WmWindow* active_window = WmWindow::Get(wm::GetActiveWindow());
+ aura::Window* active_window = wm::GetActiveWindow();
DCHECK(active_window);
- active_window->GetWindowState()->OnWMEvent(&event);
+ wm::GetWindowState(active_window)->OnWMEvent(&event);
}
void HandleWindowMinimize() {
« no previous file with comments | « no previous file | ash/accelerators/accelerator_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698