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_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Hide / Show the panel callout widgets. | 78 // Hide / Show the panel callout widgets. |
79 void SetShowCalloutWidgets(bool show); | 79 void SetShowCalloutWidgets(bool show); |
80 | 80 |
81 // Returns the callout widget (arrow) for |panel|. | 81 // Returns the callout widget (arrow) for |panel|. |
82 views::Widget* GetCalloutWidgetForPanel(WmWindow* panel); | 82 views::Widget* GetCalloutWidgetForPanel(WmWindow* panel); |
83 | 83 |
84 WmShelf* shelf() { return shelf_; } | 84 WmShelf* shelf() { return shelf_; } |
85 void SetShelf(WmShelf* shelf); | 85 void SetShelf(WmShelf* shelf); |
86 | 86 |
87 // WmLayoutManager: | 87 // aura::LayoutManager: |
88 void OnWindowResized() override; | 88 void OnWindowResized() override; |
89 void OnWindowAddedToLayout(aura::Window* child) override; | 89 void OnWindowAddedToLayout(aura::Window* child) override; |
90 void OnWillRemoveWindowFromLayout(aura::Window* child) override; | 90 void OnWillRemoveWindowFromLayout(aura::Window* child) override; |
91 void OnWindowRemovedFromLayout(aura::Window* child) override; | 91 void OnWindowRemovedFromLayout(aura::Window* child) override; |
92 void OnChildWindowVisibilityChanged(aura::Window* child, | 92 void OnChildWindowVisibilityChanged(aura::Window* child, |
93 bool visibile) override; | 93 bool visibile) override; |
94 void SetChildBounds(aura::Window* child, | 94 void SetChildBounds(aura::Window* child, |
95 const gfx::Rect& requested_bounds) override; | 95 const gfx::Rect& requested_bounds) override; |
96 | 96 |
97 // ShellObserver: | 97 // ShellObserver: |
98 void OnOverviewModeEnded() override; | 98 void OnOverviewModeEnded() override; |
99 void OnShelfAlignmentChanged(WmWindow* root_window) override; | 99 void OnShelfAlignmentChanged(WmWindow* root_window) override; |
100 void OnVirtualKeyboardStateChanged(bool activated, | 100 void OnVirtualKeyboardStateChanged(bool activated, |
101 WmWindow* root_window) override; | 101 aura::Window* root_window) override; |
102 | 102 |
103 // aura::WindowObserver | 103 // aura::WindowObserver |
104 void OnWindowPropertyChanged(aura::Window* window, | 104 void OnWindowPropertyChanged(aura::Window* window, |
105 const void* key, | 105 const void* key, |
106 intptr_t old) override; | 106 intptr_t old) override; |
107 | 107 |
108 // wm::WindowStateObserver: | 108 // wm::WindowStateObserver: |
109 void OnPostWindowStateTypeChange(wm::WindowState* window_state, | 109 void OnPostWindowStateTypeChange(wm::WindowState* window_state, |
110 wm::WindowStateType old_type) override; | 110 wm::WindowStateType old_type) override; |
111 | 111 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 keyboard_observer_; | 204 keyboard_observer_; |
205 | 205 |
206 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 206 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
207 | 207 |
208 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 208 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
209 }; | 209 }; |
210 | 210 |
211 } // namespace ash | 211 } // namespace ash |
212 | 212 |
213 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 213 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
OLD | NEW |