OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WM_COMPACT_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_COMPACT_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ash/ash_export.h" | 9 #include "ash/ash_export.h" |
10 #include "ash/wm/base_layout_manager.h" | 10 #include "ash/wm/base_layout_manager.h" |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/gtest_prod_util.h" |
13 #include "ui/gfx/compositor/layer_animation_observer.h" | 14 #include "ui/gfx/compositor/layer_animation_observer.h" |
14 | 15 |
15 namespace views { | 16 namespace views { |
16 class Widget; | 17 class Widget; |
17 } | 18 } |
18 | 19 |
19 namespace ash { | 20 namespace ash { |
20 namespace internal { | 21 namespace internal { |
21 | 22 |
22 // CompactLayoutManager is the LayoutManager used in compact window mode, | 23 // CompactLayoutManager is the LayoutManager used in compact window mode, |
(...skipping 26 matching lines...) Expand all Loading... |
49 | 50 |
50 // ui::LayerAnimationObserver: | 51 // ui::LayerAnimationObserver: |
51 virtual void OnLayerAnimationEnded( | 52 virtual void OnLayerAnimationEnded( |
52 const ui::LayerAnimationSequence* animation) OVERRIDE; | 53 const ui::LayerAnimationSequence* animation) OVERRIDE; |
53 virtual void OnLayerAnimationScheduled( | 54 virtual void OnLayerAnimationScheduled( |
54 const ui::LayerAnimationSequence* animation) OVERRIDE; | 55 const ui::LayerAnimationSequence* animation) OVERRIDE; |
55 virtual void OnLayerAnimationAborted( | 56 virtual void OnLayerAnimationAborted( |
56 const ui::LayerAnimationSequence* animation) OVERRIDE; | 57 const ui::LayerAnimationSequence* animation) OVERRIDE; |
57 | 58 |
58 private: | 59 private: |
| 60 FRIEND_TEST_ALL_PREFIXES(CompactLayoutManagerTransitionTest, |
| 61 TransitionTest); |
| 62 |
59 // Hides the status area if we are managing it and full screen windows are | 63 // Hides the status area if we are managing it and full screen windows are |
60 // visible. | 64 // visible. |
61 void UpdateStatusAreaVisibility(); | 65 void UpdateStatusAreaVisibility(); |
62 | 66 |
63 // Start a slide in / out animation sequence for the layer. | 67 // Start a slide in / out animation sequence for the layer. |
64 // The underlying layer is translated to -|offset_x| position. | 68 // The underlying layer is translated to -|offset_x| position. |
65 void AnimateSlideTo(int offset_x); | 69 void AnimateSlideTo(int offset_x); |
66 | 70 |
67 // Layout all browser windows currently in the window cycle list. | 71 // Layout all browser windows currently in the window cycle list. |
68 // skip |skip_this_window| if we do not want the window to be laid out. | 72 // skip |skip_this_window| if we do not want the window to be laid out. |
(...skipping 14 matching lines...) Expand all Loading... |
83 // The browser window currently in the viewport. | 87 // The browser window currently in the viewport. |
84 aura::Window* current_window_; | 88 aura::Window* current_window_; |
85 | 89 |
86 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); | 90 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); |
87 }; | 91 }; |
88 | 92 |
89 } // namespace ash | 93 } // namespace ash |
90 } // namespace internal | 94 } // namespace internal |
91 | 95 |
92 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ | 96 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
OLD | NEW |