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> |
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" |
19 #include "ash/wm/lock_state_observer.h" | 19 #include "ash/wm/lock_state_observer.h" |
20 #include "ash/wm/workspace/workspace_types.h" | 20 #include "ash/wm/workspace/workspace_types.h" |
21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
22 #include "base/compiler_specific.h" | 22 #include "base/compiler_specific.h" |
| 23 #include "base/gtest_prod_util.h" |
23 #include "base/logging.h" | 24 #include "base/logging.h" |
24 #include "base/observer_list.h" | 25 #include "base/observer_list.h" |
25 #include "base/timer/timer.h" | 26 #include "base/timer/timer.h" |
26 #include "ui/gfx/geometry/insets.h" | 27 #include "ui/gfx/geometry/insets.h" |
27 #include "ui/gfx/geometry/rect.h" | 28 #include "ui/gfx/geometry/rect.h" |
28 #include "ui/keyboard/keyboard_controller.h" | 29 #include "ui/keyboard/keyboard_controller.h" |
29 #include "ui/keyboard/keyboard_controller_observer.h" | 30 #include "ui/keyboard/keyboard_controller_observer.h" |
30 #include "ui/wm/public/activation_change_observer.h" | 31 #include "ui/wm/public/activation_change_observer.h" |
31 | 32 |
32 namespace aura { | 33 namespace aura { |
(...skipping 25 matching lines...) Expand all Loading... |
58 // closely with ShelfLayoutManager. | 59 // closely with ShelfLayoutManager. |
59 class ASH_EXPORT ShelfLayoutManager | 60 class ASH_EXPORT ShelfLayoutManager |
60 : public ash::ShellObserver, | 61 : public ash::ShellObserver, |
61 public aura::client::ActivationChangeObserver, | 62 public aura::client::ActivationChangeObserver, |
62 public DockedWindowLayoutManagerObserver, | 63 public DockedWindowLayoutManagerObserver, |
63 public keyboard::KeyboardControllerObserver, | 64 public keyboard::KeyboardControllerObserver, |
64 public LockStateObserver, | 65 public LockStateObserver, |
65 public SnapToPixelLayoutManager, | 66 public SnapToPixelLayoutManager, |
66 public SessionStateObserver { | 67 public SessionStateObserver { |
67 public: | 68 public: |
68 | |
69 // We reserve a small area on the edge of the workspace area to ensure that | 69 // We reserve a small area on the edge of the workspace area to ensure that |
70 // the resize handle at the edge of the window can be hit. | 70 // the resize handle at the edge of the window can be hit. |
71 static const int kWorkspaceAreaVisibleInset; | 71 static const int kWorkspaceAreaVisibleInset; |
72 | 72 |
73 // When autohidden we extend the touch hit target onto the screen so that the | 73 // When autohidden we extend the touch hit target onto the screen so that the |
74 // user can drag the shelf out. | 74 // user can drag the shelf out. |
75 static const int kWorkspaceAreaAutoHideInset; | 75 static const int kWorkspaceAreaAutoHideInset; |
76 | 76 |
77 // Size of the shelf when auto-hidden. | 77 // Size of the shelf when auto-hidden. |
78 static const int kAutoHideSize; | 78 static const int kAutoHideSize; |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 414 |
415 // The show hide animation duration override or 0 for default. | 415 // The show hide animation duration override or 0 for default. |
416 int duration_override_in_ms_; | 416 int duration_override_in_ms_; |
417 | 417 |
418 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 418 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
419 }; | 419 }; |
420 | 420 |
421 } // namespace ash | 421 } // namespace ash |
422 | 422 |
423 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 423 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |