summaryrefslogtreecommitdiffstats
path: root/athena/util/fill_layout_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'athena/util/fill_layout_manager.h')
-rw-r--r--athena/util/fill_layout_manager.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/athena/util/fill_layout_manager.h b/athena/util/fill_layout_manager.h
new file mode 100644
index 0000000..15406f3
--- /dev/null
+++ b/athena/util/fill_layout_manager.h
@@ -0,0 +1,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_UTIL_FILL_LAYOUT_MANAGER_H_
+#define ATHENA_UTIL_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_UTIL_FILL_LAYOUT_MANAGER_H_