OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 void OnShelfAlignmentChanged(WmWindow* root_window) override; | 155 void OnShelfAlignmentChanged(WmWindow* root_window) override; |
156 void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) override; | 156 void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) override; |
157 void OnPinnedStateChanged(WmWindow* pinned_window) override; | 157 void OnPinnedStateChanged(WmWindow* pinned_window) override; |
158 | 158 |
159 // Overriden from aura::client::ActivationChangeObserver: | 159 // Overriden from aura::client::ActivationChangeObserver: |
160 void OnWindowActivated( | 160 void OnWindowActivated( |
161 aura::client::ActivationChangeObserver::ActivationReason reason, | 161 aura::client::ActivationChangeObserver::ActivationReason reason, |
162 aura::Window* gained_active, | 162 aura::Window* gained_active, |
163 aura::Window* lost_active) override; | 163 aura::Window* lost_active) override; |
164 | 164 |
| 165 // Overridden from keyboard::KeyboardControllerObserver: |
| 166 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
| 167 |
165 // Overridden from ash::LockStateObserver: | 168 // Overridden from ash::LockStateObserver: |
166 void OnLockStateEvent(LockStateObserver::EventType event) override; | 169 void OnLockStateEvent(LockStateObserver::EventType event) override; |
167 | 170 |
168 // Overridden from ash::SessionStateObserver: | 171 // Overridden from ash::SessionStateObserver: |
169 void SessionStateChanged(SessionStateDelegate::SessionState state) override; | 172 void SessionStateChanged(SessionStateDelegate::SessionState state) override; |
170 | 173 |
171 // TODO(msw): Remove these accessors, kept temporarily to simplify changes. | 174 // TODO(msw): Remove these accessors, kept temporarily to simplify changes. |
172 ShelfAlignment GetAlignment() const { return shelf_widget_->GetAlignment(); } | 175 ShelfAlignment GetAlignment() const { return shelf_widget_->GetAlignment(); } |
173 | 176 |
174 // TODO(harrym|oshima): These templates will be moved to a new Shelf class. | 177 // TODO(harrym|oshima): These templates will be moved to a new Shelf class. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 // Returns the AutoHideState. This value is determined from the shelf and | 297 // Returns the AutoHideState. This value is determined from the shelf and |
295 // tray. | 298 // tray. |
296 ShelfAutoHideState CalculateAutoHideState( | 299 ShelfAutoHideState CalculateAutoHideState( |
297 ShelfVisibilityState visibility_state) const; | 300 ShelfVisibilityState visibility_state) const; |
298 | 301 |
299 // Returns true if |window| is a descendant of the shelf. | 302 // Returns true if |window| is a descendant of the shelf. |
300 bool IsShelfWindow(aura::Window* window); | 303 bool IsShelfWindow(aura::Window* window); |
301 | 304 |
302 int GetWorkAreaInsets(const State& state, int size) const; | 305 int GetWorkAreaInsets(const State& state, int size) const; |
303 | 306 |
304 // Overridden from keyboard::KeyboardControllerObserver: | |
305 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | |
306 | |
307 // Overridden from DockedWindowLayoutManagerObserver: | 307 // Overridden from DockedWindowLayoutManagerObserver: |
308 void OnDockBoundsChanging( | 308 void OnDockBoundsChanging( |
309 const gfx::Rect& dock_bounds, | 309 const gfx::Rect& dock_bounds, |
310 DockedWindowLayoutManagerObserver::Reason reason) override; | 310 DockedWindowLayoutManagerObserver::Reason reason) override; |
311 | 311 |
312 // Called when the LoginUI changes from visible to invisible. | 312 // Called when the LoginUI changes from visible to invisible. |
313 void UpdateShelfVisibilityAfterLoginUIChange(); | 313 void UpdateShelfVisibilityAfterLoginUIChange(); |
314 | 314 |
315 // Compute |target_bounds| opacity based on gesture and shelf visibility. | 315 // Compute |target_bounds| opacity based on gesture and shelf visibility. |
316 float ComputeTargetOpacity(const State& state); | 316 float ComputeTargetOpacity(const State& state); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 394 |
395 std::unique_ptr<RootWindowControllerObserverImpl> | 395 std::unique_ptr<RootWindowControllerObserverImpl> |
396 root_window_controller_observer_; | 396 root_window_controller_observer_; |
397 | 397 |
398 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 398 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
399 }; | 399 }; |
400 | 400 |
401 } // namespace ash | 401 } // namespace ash |
402 | 402 |
403 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 403 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |