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

Unified Diff: ash/wm/workspace_controller.cc

Issue 1901773002: Removes most of aura dependencies from DefaultState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wm_window_positioner
Patch Set: nit and merge Created 4 years, 8 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 | « ash/wm/workspace_controller.h ('k') | chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace_controller.cc
diff --git a/ash/wm/workspace_controller.cc b/ash/wm/workspace_controller.cc
index 76a9c596366e6592b488f185d902bb030a5025ca..7f8fc587c9777f09732fd417fa004fd479904687 100644
--- a/ash/wm/workspace_controller.cc
+++ b/ash/wm/workspace_controller.cc
@@ -62,14 +62,14 @@ WorkspaceController::~WorkspaceController() {
viewport_->RemovePreTargetHandler(event_handler_.get());
}
-WorkspaceWindowState WorkspaceController::GetWindowState() const {
+wm::WorkspaceWindowState WorkspaceController::GetWindowState() const {
if (!shelf_)
- return WORKSPACE_WINDOW_STATE_DEFAULT;
+ return wm::WORKSPACE_WINDOW_STATE_DEFAULT;
const aura::Window* topmost_fullscreen_window = GetRootWindowController(
viewport_->GetRootWindow())->GetWindowForFullscreenMode();
if (topmost_fullscreen_window &&
!wm::GetWindowState(topmost_fullscreen_window)->ignored_by_shelf()) {
- return WORKSPACE_WINDOW_STATE_FULL_SCREEN;
+ return wm::WORKSPACE_WINDOW_STATE_FULL_SCREEN;
}
// These are the container ids of containers which may contain windows that
@@ -91,7 +91,7 @@ WorkspaceWindowState WorkspaceController::GetWindowState() const {
if (!layer->GetTargetVisibility())
continue;
if (window_state->IsMaximized())
- return WORKSPACE_WINDOW_STATE_MAXIMIZED;
+ return wm::WORKSPACE_WINDOW_STATE_MAXIMIZED;
if (!window_overlaps_launcher &&
((*i)->bounds().Intersects(shelf_bounds))) {
window_overlaps_launcher = true;
@@ -99,9 +99,9 @@ WorkspaceWindowState WorkspaceController::GetWindowState() const {
}
}
- return (window_overlaps_launcher || IsDockedAreaVisible(shelf_)) ?
- WORKSPACE_WINDOW_STATE_WINDOW_OVERLAPS_SHELF :
- WORKSPACE_WINDOW_STATE_DEFAULT;
+ return (window_overlaps_launcher || IsDockedAreaVisible(shelf_))
+ ? wm::WORKSPACE_WINDOW_STATE_WINDOW_OVERLAPS_SHELF
+ : wm::WORKSPACE_WINDOW_STATE_DEFAULT;
}
void WorkspaceController::SetShelf(ShelfLayoutManager* shelf) {
« no previous file with comments | « ash/wm/workspace_controller.h ('k') | chrome/browser/chromeos/background/ash_user_wallpaper_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698