summaryrefslogtreecommitdiffstats
path: root/blimp/engine/ui/blimp_layout_manager.cc
blob: 49f12ab7d896642bfc72025c12f0d8ba36e49426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2015 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 "blimp/engine/ui/blimp_layout_manager.h"

#include "ui/aura/window.h"

namespace blimp {
namespace engine {

BlimpLayoutManager::BlimpLayoutManager(aura::Window* root_window)
    : root_window_(root_window) {}

BlimpLayoutManager::~BlimpLayoutManager() {}

void BlimpLayoutManager::OnWindowResized() {}

void BlimpLayoutManager::OnWindowAddedToLayout(aura::Window* child) {
  child->SetBounds(root_window_->bounds());
}

void BlimpLayoutManager::OnWillRemoveWindowFromLayout(aura::Window* child) {}

void BlimpLayoutManager::OnWindowRemovedFromLayout(aura::Window* child) {}

void BlimpLayoutManager::OnChildWindowVisibilityChanged(aura::Window* child,
                                                        bool visible) {}

void BlimpLayoutManager::SetChildBounds(aura::Window* child,
                                        const gfx::Rect& requested_bounds) {
  SetChildBoundsDirect(child, root_window_->bounds());
}

}  // namespace engine
}  // namespace blimp