| 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
|
|
|