| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 // Called when the LoginUI changes from visible to invisible. | 275 // Called when the LoginUI changes from visible to invisible. |
| 276 void UpdateShelfVisibilityAfterLoginUIChange(); | 276 void UpdateShelfVisibilityAfterLoginUIChange(); |
| 277 | 277 |
| 278 // Compute |target_bounds| opacity based on gesture and shelf visibility. | 278 // Compute |target_bounds| opacity based on gesture and shelf visibility. |
| 279 float ComputeTargetOpacity(const State& state); | 279 float ComputeTargetOpacity(const State& state); |
| 280 | 280 |
| 281 // Returns true if there is a fullscreen window open that causes the shelf | 281 // Returns true if there is a fullscreen window open that causes the shelf |
| 282 // to be hidden. | 282 // to be hidden. |
| 283 bool IsShelfHiddenForFullscreen() const; | 283 bool IsShelfHiddenForFullscreen() const; |
| 284 | 284 |
| 285 // Returns true if there is a fullscreen or maximized window open that causes |
| 286 // the shelf to be autohidden. |
| 287 bool IsShelfAutoHideForFullscreenMaximized() const; |
| 288 |
| 285 // Gesture related functions: | 289 // Gesture related functions: |
| 286 void StartGestureDrag(const ui::GestureEvent& gesture); | 290 void StartGestureDrag(const ui::GestureEvent& gesture); |
| 287 void UpdateGestureDrag(const ui::GestureEvent& gesture); | 291 void UpdateGestureDrag(const ui::GestureEvent& gesture); |
| 288 void CompleteGestureDrag(const ui::GestureEvent& gesture); | 292 void CompleteGestureDrag(const ui::GestureEvent& gesture); |
| 289 void CancelGestureDrag(); | 293 void CancelGestureDrag(); |
| 290 | 294 |
| 291 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling | 295 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling |
| 292 // UpdateBoundsAndOpacity() again from SetChildBounds(). | 296 // UpdateBoundsAndOpacity() again from SetChildBounds(). |
| 293 bool updating_bounds_; | 297 bool updating_bounds_; |
| 294 | 298 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 // The current shelf background. Should not be assigned to directly, use | 360 // The current shelf background. Should not be assigned to directly, use |
| 357 // MaybeUpdateShelfBackground() instead. | 361 // MaybeUpdateShelfBackground() instead. |
| 358 ShelfBackgroundType shelf_background_type_; | 362 ShelfBackgroundType shelf_background_type_; |
| 359 | 363 |
| 360 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 364 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 361 }; | 365 }; |
| 362 | 366 |
| 363 } // namespace ash | 367 } // namespace ash |
| 364 | 368 |
| 365 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 369 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |