OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/wm/base_layout_manager.h" | 9 #include "ash/wm/base_layout_manager.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "ui/aura/layout_manager.h" | 12 #include "ui/aura/layout_manager.h" |
13 #include "ui/aura/window_observer.h" | 13 #include "ui/aura/window_observer.h" |
| 14 #include "ui/base/ui_base_types.h" |
14 | 15 |
15 namespace aura { | 16 namespace aura { |
16 class MouseEvent; | 17 class MouseEvent; |
17 class RootWindow; | 18 class RootWindow; |
18 class Window; | 19 class Window; |
19 } | 20 } |
20 | 21 |
21 namespace gfx { | 22 namespace gfx { |
22 class Rect; | 23 class Rect; |
23 } | 24 } |
(...skipping 16 matching lines...) Expand all Loading... |
40 } | 41 } |
41 | 42 |
42 // Overridden from BaseLayoutManager: | 43 // Overridden from BaseLayoutManager: |
43 virtual void OnWindowResized() OVERRIDE; | 44 virtual void OnWindowResized() OVERRIDE; |
44 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; | 45 virtual void OnWindowAddedToLayout(aura::Window* child) OVERRIDE; |
45 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; | 46 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; |
46 virtual void OnChildWindowVisibilityChanged(aura::Window* child, | 47 virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
47 bool visibile) OVERRIDE; | 48 bool visibile) OVERRIDE; |
48 virtual void SetChildBounds(aura::Window* child, | 49 virtual void SetChildBounds(aura::Window* child, |
49 const gfx::Rect& requested_bounds) OVERRIDE; | 50 const gfx::Rect& requested_bounds) OVERRIDE; |
50 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE; | |
51 virtual void OnMonitorWorkAreaInsetsChanged() OVERRIDE; | 51 virtual void OnMonitorWorkAreaInsetsChanged() OVERRIDE; |
52 | 52 |
53 // Overriden from aura::WindowObserver: | 53 // Overriden from aura::WindowObserver: |
54 virtual void OnWindowPropertyChanged(aura::Window* window, | 54 virtual void OnWindowPropertyChanged(aura::Window* window, |
55 const void* key, | 55 const void* key, |
56 intptr_t old) OVERRIDE; | 56 intptr_t old) OVERRIDE; |
57 | 57 |
58 private: | 58 private: |
| 59 void ShowStateChanged( |
| 60 aura::Window* window, |
| 61 ui::WindowShowState last_show_state); |
| 62 |
59 // Owned by WorkspaceController. | 63 // Owned by WorkspaceController. |
60 WorkspaceManager* workspace_manager_; | 64 WorkspaceManager* workspace_manager_; |
61 | 65 |
62 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); | 66 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); |
63 }; | 67 }; |
64 | 68 |
65 } // namespace internal | 69 } // namespace internal |
66 } // namespace ash | 70 } // namespace ash |
67 | 71 |
68 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ | 72 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ |
OLD | NEW |