| 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_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 // Called when the LoginUI changes from visible to invisible. | 273 // Called when the LoginUI changes from visible to invisible. |
| 274 void UpdateShelfVisibilityAfterLoginUIChange(); | 274 void UpdateShelfVisibilityAfterLoginUIChange(); |
| 275 | 275 |
| 276 // Compute |target_bounds| opacity based on gesture and shelf visibility. | 276 // Compute |target_bounds| opacity based on gesture and shelf visibility. |
| 277 float ComputeTargetOpacity(const State& state); | 277 float ComputeTargetOpacity(const State& state); |
| 278 | 278 |
| 279 // Returns true if there is a fullscreen window open that causes the shelf | 279 // Returns true if there is a fullscreen window open that causes the shelf |
| 280 // to be hidden. | 280 // to be hidden. |
| 281 bool IsShelfHiddenForFullscreen() const; | 281 bool IsShelfHiddenForFullscreen() const; |
| 282 | 282 |
| 283 // Returns true if there is a fullscreen or maximized window open that causes |
| 284 // the shelf to be autohidden. |
| 285 bool IsShelfAutoHideForFullscreenMaximized() const; |
| 286 |
| 283 // Gesture related functions: | 287 // Gesture related functions: |
| 284 void StartGestureDrag(const ui::GestureEvent& gesture); | 288 void StartGestureDrag(const ui::GestureEvent& gesture); |
| 285 void UpdateGestureDrag(const ui::GestureEvent& gesture); | 289 void UpdateGestureDrag(const ui::GestureEvent& gesture); |
| 286 void CompleteGestureDrag(const ui::GestureEvent& gesture); | 290 void CompleteGestureDrag(const ui::GestureEvent& gesture); |
| 287 void CancelGestureDrag(); | 291 void CancelGestureDrag(); |
| 288 | 292 |
| 289 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling | 293 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling |
| 290 // UpdateBoundsAndOpacity() again from SetChildBounds(). | 294 // UpdateBoundsAndOpacity() again from SetChildBounds(). |
| 291 bool updating_bounds_; | 295 bool updating_bounds_; |
| 292 | 296 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 ScopedObserver<keyboard::KeyboardController, | 359 ScopedObserver<keyboard::KeyboardController, |
| 356 keyboard::KeyboardControllerObserver> | 360 keyboard::KeyboardControllerObserver> |
| 357 keyboard_observer_; | 361 keyboard_observer_; |
| 358 | 362 |
| 359 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 363 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 360 }; | 364 }; |
| 361 | 365 |
| 362 } // namespace ash | 366 } // namespace ash |
| 363 | 367 |
| 364 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 368 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |