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

Unified Diff: ash/wm/workspace_controller.cc

Issue 2814243002: Removes a couple more functions from WmWindow (Closed)
Patch Set: feedback Created 3 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/workspace_window_resizer.cc ('k') | ash/wm_window.h » ('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 af1162e8d37373b8a696b1677f3fc8db21018dd2..14ca8c97447f6713ff160b9ed9c667d635405c1e 100644
--- a/ash/wm/workspace_controller.cc
+++ b/ash/wm/workspace_controller.cc
@@ -12,12 +12,14 @@
#include "ash/shell_port.h"
#include "ash/wm/fullscreen_window_finder.h"
#include "ash/wm/window_state.h"
+#include "ash/wm/window_state_aura.h"
#include "ash/wm/wm_window_animations.h"
#include "ash/wm/workspace/workspace_event_handler.h"
#include "ash/wm/workspace/workspace_layout_manager.h"
#include "ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
#include "ash/wm_window.h"
#include "base/memory/ptr_util.h"
+#include "ui/aura/window.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
@@ -62,17 +64,18 @@ wm::WorkspaceWindowState WorkspaceController::GetWindowState() const {
bool window_overlaps_launcher = false;
// The default container may contain windows that may overlap the launcher
// shelf and affect its transparency.
- WmWindow* container = viewport_->GetRootWindow()->GetChildByShellWindowId(
- kShellWindowId_DefaultContainer);
- for (WmWindow* window : container->GetChildren()) {
- wm::WindowState* window_state = window->GetWindowState();
+ aura::Window* container =
+ viewport_->GetRootWindow()->aura_window()->GetChildById(
+ kShellWindowId_DefaultContainer);
+ for (aura::Window* window : container->children()) {
+ wm::WindowState* window_state = wm::GetWindowState(window);
if (window_state->ignored_by_shelf() ||
- (window->GetLayer() && !window->GetLayer()->GetTargetVisibility())) {
+ (window->layer() && !window->layer()->GetTargetVisibility())) {
continue;
}
if (window_state->IsMaximized())
return wm::WORKSPACE_WINDOW_STATE_MAXIMIZED;
- window_overlaps_launcher |= window->GetBounds().Intersects(shelf_bounds);
+ window_overlaps_launcher |= window->bounds().Intersects(shelf_bounds);
}
return window_overlaps_launcher
« no previous file with comments | « ash/wm/workspace/workspace_window_resizer.cc ('k') | ash/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698