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_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 <vector> | 8 #include <vector> |
|
oshima
2016/04/08 07:09:41
include?
| |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 11 #include "ash/session/session_state_observer.h" | 11 #include "ash/session/session_state_observer.h" |
| 12 #include "ash/shelf/background_animator.h" | 12 #include "ash/shelf/background_animator.h" |
| 13 #include "ash/shelf/shelf.h" | 13 #include "ash/shelf/shelf.h" |
| 14 #include "ash/shelf/shelf_types.h" | 14 #include "ash/shelf/shelf_types.h" |
| 15 #include "ash/shell_observer.h" | 15 #include "ash/shell_observer.h" |
| 16 #include "ash/snap_to_pixel_layout_manager.h" | 16 #include "ash/snap_to_pixel_layout_manager.h" |
| 17 #include "ash/system/status_area_widget.h" | 17 #include "ash/system/status_area_widget.h" |
| 18 #include "ash/wm/dock/docked_window_layout_manager_observer.h" | 18 #include "ash/wm/dock/docked_window_layout_manager_observer.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 bool window_overlaps_shelf_; | 347 bool window_overlaps_shelf_; |
| 348 | 348 |
| 349 base::OneShotTimer auto_hide_timer_; | 349 base::OneShotTimer auto_hide_timer_; |
| 350 | 350 |
| 351 // Whether the mouse was over the shelf when the auto hide timer started. | 351 // Whether the mouse was over the shelf when the auto hide timer started. |
| 352 // False when neither the auto hide timer nor the timer task are running. | 352 // False when neither the auto hide timer nor the timer task are running. |
| 353 bool mouse_over_shelf_when_auto_hide_timer_started_; | 353 bool mouse_over_shelf_when_auto_hide_timer_started_; |
| 354 | 354 |
| 355 // EventFilter used to detect when user moves the mouse over the shelf to | 355 // EventFilter used to detect when user moves the mouse over the shelf to |
| 356 // trigger showing the shelf. | 356 // trigger showing the shelf. |
| 357 scoped_ptr<AutoHideEventFilter> auto_hide_event_filter_; | 357 std::unique_ptr<AutoHideEventFilter> auto_hide_event_filter_; |
| 358 | 358 |
| 359 // EventFilter used to detect when user issues a gesture on a bezel sensor. | 359 // EventFilter used to detect when user issues a gesture on a bezel sensor. |
| 360 scoped_ptr<ShelfBezelEventFilter> bezel_event_filter_; | 360 std::unique_ptr<ShelfBezelEventFilter> bezel_event_filter_; |
| 361 | 361 |
| 362 base::ObserverList<ShelfLayoutManagerObserver> observers_; | 362 base::ObserverList<ShelfLayoutManagerObserver> observers_; |
| 363 | 363 |
| 364 // The shelf reacts to gesture-drags, and can be set to auto-hide for certain | 364 // The shelf reacts to gesture-drags, and can be set to auto-hide for certain |
| 365 // gestures. Some shelf behaviour (e.g. visibility state, background color | 365 // gestures. Some shelf behaviour (e.g. visibility state, background color |
| 366 // etc.) are affected by various stages of the drag. The enum keeps track of | 366 // etc.) are affected by various stages of the drag. The enum keeps track of |
| 367 // the present status of the gesture drag. | 367 // the present status of the gesture drag. |
| 368 enum GestureDragStatus { | 368 enum GestureDragStatus { |
| 369 GESTURE_DRAG_NONE, | 369 GESTURE_DRAG_NONE, |
| 370 GESTURE_DRAG_IN_PROGRESS, | 370 GESTURE_DRAG_IN_PROGRESS, |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 399 | 399 |
| 400 // The show hide animation duration override or 0 for default. | 400 // The show hide animation duration override or 0 for default. |
| 401 int duration_override_in_ms_; | 401 int duration_override_in_ms_; |
| 402 | 402 |
| 403 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 403 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
| 404 }; | 404 }; |
| 405 | 405 |
| 406 } // namespace ash | 406 } // namespace ash |
| 407 | 407 |
| 408 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 408 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
| OLD | NEW |