Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ | 5 #ifndef ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ |
| 6 #define ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ | 6 #define ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "athena/athena_export.h" | 8 #include "athena/athena_export.h" |
| 9 #include "ui/aura/layout_manager.h" | 9 #include "ui/aura/layout_manager.h" |
| 10 | 10 |
| 11 namespace aura { | |
| 12 template <typename T> | |
| 13 struct WindowProperty; | |
| 14 } | |
| 15 | |
| 11 namespace athena { | 16 namespace athena { |
| 12 | 17 |
| 18 // A property key for FillLayoutManager; FillLayoutManager always fills the | |
| 19 // window when this key is set to true regardless of the window type. The | |
| 20 // default value is false. | |
| 21 ATHENA_EXPORT extern const aura::WindowProperty<bool>* const | |
| 22 kAlwaysFillWindowKey; | |
| 23 | |
| 13 class ATHENA_EXPORT FillLayoutManager : public aura::LayoutManager { | 24 class ATHENA_EXPORT FillLayoutManager : public aura::LayoutManager { |
| 14 public: | 25 public: |
| 15 explicit FillLayoutManager(aura::Window* container); | 26 explicit FillLayoutManager(aura::Window* container); |
| 16 ~FillLayoutManager() override; | 27 ~FillLayoutManager() override; |
| 17 | 28 |
|
oshima
2014/11/10 22:11:49
can you add static method
static void SetAlwaysF
Jun Mukai
2014/11/10 22:39:02
Done.
| |
| 18 // aura::LayoutManager: | 29 // aura::LayoutManager: |
| 19 virtual void OnWindowResized() override; | 30 virtual void OnWindowResized() override; |
| 20 virtual void OnWindowAddedToLayout(aura::Window* child) override; | 31 virtual void OnWindowAddedToLayout(aura::Window* child) override; |
| 21 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override; | 32 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) override; |
| 22 virtual void OnWindowRemovedFromLayout(aura::Window* child) override; | 33 virtual void OnWindowRemovedFromLayout(aura::Window* child) override; |
| 23 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 34 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 24 bool visible) override; | 35 bool visible) override; |
| 25 virtual void SetChildBounds(aura::Window* child, | 36 virtual void SetChildBounds(aura::Window* child, |
| 26 const gfx::Rect& requested_bounds) override; | 37 const gfx::Rect& requested_bounds) override; |
| 27 | 38 |
| 28 private: | 39 private: |
| 29 aura::Window* container_; | 40 aura::Window* container_; |
| 30 | 41 |
| 31 DISALLOW_COPY_AND_ASSIGN(FillLayoutManager); | 42 DISALLOW_COPY_AND_ASSIGN(FillLayoutManager); |
| 32 }; | 43 }; |
| 33 | 44 |
| 34 } // namespace athena | 45 } // namespace athena |
| 35 | 46 |
| 36 #endif // ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ | 47 #endif // ATHENA_UTIL_FILL_LAYOUT_MANAGER_H_ |
| OLD | NEW |