Chromium Code Reviews| 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" |
| 11 #include "ash/common/session/session_state_observer.h" | 11 #include "ash/common/session/session_state_observer.h" |
| 12 #include "ash/common/shelf/wm_shelf.h" | 12 #include "ash/common/shelf/wm_shelf.h" |
| 13 #include "ash/common/shell_observer.h" | 13 #include "ash/common/shell_observer.h" |
| 14 #include "ash/common/wm/background_animator.h" | |
| 15 #include "ash/common/wm/dock/docked_window_layout_manager_observer.h" | 14 #include "ash/common/wm/dock/docked_window_layout_manager_observer.h" |
| 16 #include "ash/common/wm/lock_state_observer.h" | 15 #include "ash/common/wm/lock_state_observer.h" |
| 17 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" | 16 #include "ash/common/wm/wm_snap_to_pixel_layout_manager.h" |
| 18 #include "ash/common/wm/workspace/workspace_types.h" | 17 #include "ash/common/wm/workspace/workspace_types.h" |
| 19 #include "ash/common/wm_activation_observer.h" | 18 #include "ash/common/wm_activation_observer.h" |
| 20 #include "ash/public/cpp/shelf_types.h" | 19 #include "ash/public/cpp/shelf_types.h" |
| 21 #include "base/macros.h" | 20 #include "base/macros.h" |
| 22 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
| 23 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
| 24 #include "ui/gfx/geometry/insets.h" | 23 #include "ui/gfx/geometry/insets.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 void StopAnimating(); | 234 void StopAnimating(); |
| 236 | 235 |
| 237 // Calculates the target bounds assuming visibility of |visible|. | 236 // Calculates the target bounds assuming visibility of |visible|. |
| 238 void CalculateTargetBounds(const State& state, TargetBounds* target_bounds); | 237 void CalculateTargetBounds(const State& state, TargetBounds* target_bounds); |
| 239 | 238 |
| 240 // Updates the target bounds if a gesture-drag is in progress. This is only | 239 // Updates the target bounds if a gesture-drag is in progress. This is only |
| 241 // used by |CalculateTargetBounds()|. | 240 // used by |CalculateTargetBounds()|. |
| 242 void UpdateTargetBoundsForGesture(TargetBounds* target_bounds) const; | 241 void UpdateTargetBoundsForGesture(TargetBounds* target_bounds) const; |
| 243 | 242 |
| 244 // Updates the background of the shelf if it has changed. | 243 // Updates the background of the shelf if it has changed. |
| 245 void MaybeUpdateShelfBackground(BackgroundAnimatorChangeType change_type); | 244 void MaybeUpdateShelfBackground(gfx::AnimationChangeType change_type); |
|
James Cook
2017/02/08 00:31:28
#include animation_change_type.h?
bruthig
2017/02/10 18:49:10
Forward declared instead.
| |
| 246 | 245 |
| 247 // Updates the auto hide state immediately. | 246 // Updates the auto hide state immediately. |
| 248 void UpdateAutoHideStateNow(); | 247 void UpdateAutoHideStateNow(); |
| 249 | 248 |
| 250 // Stops the auto hide timer and clears | 249 // Stops the auto hide timer and clears |
| 251 // |mouse_over_shelf_when_auto_hide_timer_started_|. | 250 // |mouse_over_shelf_when_auto_hide_timer_started_|. |
| 252 void StopAutoHideTimer(); | 251 void StopAutoHideTimer(); |
| 253 | 252 |
| 254 // Returns the bounds of an additional region which can trigger showing the | 253 // Returns the bounds of an additional region which can trigger showing the |
| 255 // shelf. This region exists to make it easier to trigger showing the shelf | 254 // shelf. This region exists to make it easier to trigger showing the shelf |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 356 // The current shelf background. Should not be assigned to directly, use | 355 // The current shelf background. Should not be assigned to directly, use |
| 357 // MaybeUpdateShelfBackground() instead. | 356 // MaybeUpdateShelfBackground() instead. |
| 358 ShelfBackgroundType shelf_background_type_; | 357 ShelfBackgroundType shelf_background_type_; |
| 359 | 358 |
| 360 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 359 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 361 }; | 360 }; |
| 362 | 361 |
| 363 } // namespace ash | 362 } // namespace ash |
| 364 | 363 |
| 365 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ | 364 #endif // ASH_COMMON_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |