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

Unified Diff: ash/common/wm/root_window_layout_manager.cc

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/common/wm/root_window_layout_manager.h ('k') | ash/common/wm/screen_dimmer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/root_window_layout_manager.cc
diff --git a/ash/common/wm/root_window_layout_manager.cc b/ash/common/wm/root_window_layout_manager.cc
deleted file mode 100644
index 15ec3fbfaaa0219b4aa5d078c9da5d5a12fa3be3..0000000000000000000000000000000000000000
--- a/ash/common/wm/root_window_layout_manager.cc
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/common/wm/root_window_layout_manager.h"
-
-#include "ash/common/wm_window.h"
-#include "ui/aura/window.h"
-#include "ui/aura/window_tracker.h"
-
-namespace ash {
-namespace wm {
-
-////////////////////////////////////////////////////////////////////////////////
-// RootWindowLayoutManager, public:
-
-RootWindowLayoutManager::RootWindowLayoutManager(WmWindow* owner)
- : owner_(owner) {}
-
-RootWindowLayoutManager::~RootWindowLayoutManager() {}
-
-////////////////////////////////////////////////////////////////////////////////
-// RootWindowLayoutManager, aura::LayoutManager implementation:
-
-void RootWindowLayoutManager::OnWindowResized() {
- const gfx::Rect fullscreen_bounds = gfx::Rect(owner_->GetBounds().size());
-
- // Resize both our immediate children (the containers-of-containers animated
- // by PowerButtonController) and their children (the actual containers).
- aura::WindowTracker children_tracker(owner_->aura_window()->children());
- while (!children_tracker.windows().empty()) {
- aura::Window* child = children_tracker.Pop();
- // Skip descendants of top-level windows, i.e. only resize containers and
- // other windows without a delegate, such as ScreenDimmer windows.
- if (child->GetToplevelWindow())
- continue;
-
- child->SetBounds(fullscreen_bounds);
- aura::WindowTracker grandchildren_tracker(child->children());
- while (!grandchildren_tracker.windows().empty()) {
- child = grandchildren_tracker.Pop();
- if (!child->GetToplevelWindow())
- child->SetBounds(fullscreen_bounds);
- }
- }
-}
-
-void RootWindowLayoutManager::OnWindowAddedToLayout(WmWindow* child) {}
-
-void RootWindowLayoutManager::OnWillRemoveWindowFromLayout(WmWindow* child) {}
-
-void RootWindowLayoutManager::OnWindowRemovedFromLayout(WmWindow* child) {}
-
-void RootWindowLayoutManager::OnChildWindowVisibilityChanged(WmWindow* child,
- bool visible) {}
-
-void RootWindowLayoutManager::SetChildBounds(
- WmWindow* child,
- const gfx::Rect& requested_bounds) {
- child->SetBoundsDirect(requested_bounds);
-}
-
-} // namespace wm
-} // namespace ash
« no previous file with comments | « ash/common/wm/root_window_layout_manager.h ('k') | ash/common/wm/screen_dimmer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698