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 ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_ROOT_WINDOW_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 | 12 |
13 namespace aura { | 13 namespace aura { |
14 class Window; | 14 class Window; |
15 } | 15 } |
16 namespace gfx { | 16 namespace gfx { |
17 class Rect; | 17 class Rect; |
18 } | 18 } |
19 namespace views { | 19 namespace views { |
20 class Widget; | 20 class Widget; |
21 } | 21 } |
22 | 22 |
23 namespace aura_shell { | 23 namespace ash { |
24 namespace internal { | 24 namespace internal { |
25 | 25 |
26 // A layout manager for the root window. | 26 // A layout manager for the root window. |
27 // Resizes all of its immediate children to fill the bounds of the root window. | 27 // Resizes all of its immediate children to fill the bounds of the root window. |
28 class RootWindowLayoutManager : public aura::LayoutManager { | 28 class RootWindowLayoutManager : public aura::LayoutManager { |
29 public: | 29 public: |
30 explicit RootWindowLayoutManager(aura::Window* owner); | 30 explicit RootWindowLayoutManager(aura::Window* owner); |
31 virtual ~RootWindowLayoutManager(); | 31 virtual ~RootWindowLayoutManager(); |
32 | 32 |
33 void set_background_widget(views::Widget* background_widget) { | 33 void set_background_widget(views::Widget* background_widget) { |
(...skipping 12 matching lines...) Expand all Loading... |
46 private: | 46 private: |
47 aura::Window* owner_; | 47 aura::Window* owner_; |
48 | 48 |
49 // May be NULL if we're not painting a background. | 49 // May be NULL if we're not painting a background. |
50 views::Widget* background_widget_; | 50 views::Widget* background_widget_; |
51 | 51 |
52 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager); | 52 DISALLOW_COPY_AND_ASSIGN(RootWindowLayoutManager); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace internal | 55 } // namespace internal |
56 } // namespace aura_shell | 56 } // namespace ash |
57 | 57 |
58 #endif // ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ | 58 #endif // ASH_WM_ROOT_WINDOW_LAYOUT_MANAGER_H_ |
OLD | NEW |