| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ | 5 #ifndef UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ |
| 6 #define UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ | 6 #define UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "ui/aura/layout_manager.h" | 11 #include "ui/aura/layout_manager.h" |
| 12 #include "ui/aura_shell/aura_shell_export.h" |
| 12 | 13 |
| 13 namespace aura { | 14 namespace aura { |
| 14 class Window; | 15 class Window; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace gfx { | 18 namespace gfx { |
| 18 class Rect; | 19 class Rect; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace aura_shell { | 22 namespace aura_shell { |
| 22 namespace internal { | 23 namespace internal { |
| 23 | 24 |
| 24 // LayoutManager for the default window container. | 25 // LayoutManager for the default window container. |
| 25 class DefaultContainerLayoutManager : public aura::LayoutManager { | 26 class AURA_SHELL_EXPORT DefaultContainerLayoutManager |
| 27 : public aura::LayoutManager { |
| 26 public: | 28 public: |
| 27 explicit DefaultContainerLayoutManager(aura::Window* owner); | 29 explicit DefaultContainerLayoutManager(aura::Window* owner); |
| 28 virtual ~DefaultContainerLayoutManager(); | 30 virtual ~DefaultContainerLayoutManager(); |
| 29 | 31 |
| 30 // Overridden from aura::LayoutManager: | 32 // Overridden from aura::LayoutManager: |
| 31 virtual void OnWindowResized() OVERRIDE; | 33 virtual void OnWindowResized() OVERRIDE; |
| 32 virtual void OnWindowAdded(aura::Window* child) OVERRIDE; | 34 virtual void OnWindowAdded(aura::Window* child) OVERRIDE; |
| 33 virtual void OnWillRemoveWindow(aura::Window* child) OVERRIDE; | 35 virtual void OnWillRemoveWindow(aura::Window* child) OVERRIDE; |
| 34 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 36 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
| 35 bool visibile) OVERRIDE; | 37 bool visibile) OVERRIDE; |
| 36 virtual void CalculateBoundsForChild(aura::Window* child, | 38 virtual void CalculateBoundsForChild(aura::Window* child, |
| 37 gfx::Rect* requested_bounds) OVERRIDE; | 39 gfx::Rect* requested_bounds) OVERRIDE; |
| 38 | 40 |
| 39 private: | 41 private: |
| 40 aura::Window* owner_; | 42 aura::Window* owner_; |
| 41 | 43 |
| 42 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager); | 44 DISALLOW_COPY_AND_ASSIGN(DefaultContainerLayoutManager); |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 } // namespace internal | 47 } // namespace internal |
| 46 } // namespace aura_shell | 48 } // namespace aura_shell |
| 47 | 49 |
| 48 #endif // UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ | 50 #endif // UI_AURA_SHELL_DEFAULT_CONTAINER_LAYOUT_MANAGER_H_ |
| OLD | NEW |