summaryrefslogtreecommitdiffstats
path: root/athena/common/fill_layout_manager.h
blob: a5df2d46d7a3e086359d637d8d87e6553deda58a (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 2014 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.

#ifndef ATHENA_COMMON_FILL_LAYOUT_MANAGER_H_
#define ATHENA_COMMON_FILL_LAYOUT_MANAGER_H_

#include "athena/athena_export.h"
#include "ui/aura/layout_manager.h"

namespace athena {

class ATHENA_EXPORT FillLayoutManager : public aura::LayoutManager {
 public:
  explicit FillLayoutManager(aura::Window* container);
  virtual ~FillLayoutManager();

  // aura::LayoutManager:
  virtual void OnWindowResized() OVERRIDE;
  virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE;
  virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
  virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE;
  virtual void OnChildWindowVisibilityChanged(aura::Window* child,
                                              bool visible) OVERRIDE;
  virtual void SetChildBounds(aura::Window* child,
                              const gfx::Rect& requested_bounds) OVERRIDE;

 private:
  aura::Window* container_;

  DISALLOW_COPY_AND_ASSIGN(FillLayoutManager);
};

}  // namespace athena

#endif  // ATHENA_COMMON_FILL_LAYOUT_MANAGER_H_