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_DESKTOP_LAYOUT_MANAGER_H_ | 5 #ifndef UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ |
6 #define UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ | 6 #define UI_AURA_SHELL_DESKTOP_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 views { | 16 namespace views { |
17 class Widget; | 17 class Widget; |
18 } | 18 } |
19 | 19 |
| 20 namespace aura_shell { |
| 21 namespace internal { |
| 22 |
20 class DesktopLayoutManager : public aura::LayoutManager { | 23 class DesktopLayoutManager : public aura::LayoutManager { |
21 public: | 24 public: |
22 explicit DesktopLayoutManager(aura::Window* owner); | 25 explicit DesktopLayoutManager(aura::Window* owner); |
23 virtual ~DesktopLayoutManager(); | 26 virtual ~DesktopLayoutManager(); |
24 | 27 |
25 void set_background_widget(views::Widget* background_widget) { | 28 void set_background_widget(views::Widget* background_widget) { |
26 background_widget_ = background_widget; | 29 background_widget_ = background_widget; |
27 } | 30 } |
28 | 31 |
| 32 void set_launcher_widget(views::Widget* launcher_widget) { |
| 33 launcher_widget_ = launcher_widget; |
| 34 } |
| 35 |
29 private: | 36 private: |
30 // Overridden from aura::LayoutManager: | 37 // Overridden from aura::LayoutManager: |
31 virtual void OnWindowResized() OVERRIDE; | 38 virtual void OnWindowResized() OVERRIDE; |
32 | 39 |
33 aura::Window* owner_; | 40 aura::Window* owner_; |
34 views::Widget* background_widget_; | 41 views::Widget* background_widget_; |
| 42 views::Widget* launcher_widget_; |
35 | 43 |
36 DISALLOW_COPY_AND_ASSIGN(DesktopLayoutManager); | 44 DISALLOW_COPY_AND_ASSIGN(DesktopLayoutManager); |
37 }; | 45 }; |
38 | 46 |
| 47 } // namespace internal |
| 48 } // namespace aura_shell |
| 49 |
39 #endif // UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ | 50 #endif // UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ |
OLD | NEW |