| 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" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 FRIEND_TEST_ALL_PREFIXES(CompactLayoutManagerTest, CloseAllWindows); | 56 FRIEND_TEST_ALL_PREFIXES(CompactLayoutManagerTest, CloseAllWindows); |
| 57 | 57 |
| 58 // Hides the status area if we are managing it and full screen windows are | 58 // Hides the status area if we are managing it and full screen windows are |
| 59 // visible. | 59 // visible. |
| 60 void UpdateStatusAreaVisibility(); | 60 void UpdateStatusAreaVisibility(); |
| 61 | 61 |
| 62 // Start a slide in / out animation sequence for the layer. | 62 // Start a slide in / out animation sequence for the layer. |
| 63 // The underlying layer is translated to -|offset_x| position. | 63 // The underlying layer is translated to -|offset_x| position. |
| 64 void AnimateSlideTo(int offset_x); | 64 void AnimateSlideTo(int offset_x); |
| 65 | 65 |
| 66 // Returns true if there is a slide in progress. |
| 67 bool AreWindowsAnimating() const; |
| 68 |
| 66 // Layout all browser windows currently in the window cycle list. | 69 // Layout all browser windows currently in the window cycle list. |
| 67 // skip |skip_this_window| if we do not want the window to be laid out. | 70 // skip |skip_this_window| if we do not want the window to be laid out. |
| 68 void LayoutWindows(aura::Window* skip_this_window); | 71 void LayoutWindows(aura::Window* skip_this_window); |
| 69 | 72 |
| 70 // Hides all but the |current_window_| in the windows list. If we | 73 // Hides all but the |current_window_| in the windows list. If we |
| 71 // cannot determine the |current_window_|, we do not hide any. | 74 // cannot determine the |current_window_|, we do not hide any. |
| 72 void HideWindows(); | 75 void HideWindows(); |
| 73 | 76 |
| 74 // Returns the next window after |window| in the window cycle list. | 77 // Returns the next window after |window| in the window cycle list. |
| 75 // This could return NULL if we cannot find a next window. | 78 // This could return NULL if we cannot find a next window. |
| 76 aura::Window* FindReplacementWindow(aura::Window* window); | 79 aura::Window* FindReplacementWindow(aura::Window* window); |
| 77 | 80 |
| 78 // Switches to a replacement window of |current_window_|. | 81 // Switches to a replacement window of |current_window_|. |
| 79 void SwitchToReplacementWindow(); | 82 void SwitchToReplacementWindow(); |
| 80 | 83 |
| 81 // Status area with clock, network, battery, etc. icons. May be NULL if the | 84 // Status area with clock, network, battery, etc. icons. May be NULL if the |
| 82 // shelf is managing the status area. | 85 // shelf is managing the status area. |
| 83 views::Widget* status_area_widget_; | 86 views::Widget* status_area_widget_; |
| 84 | 87 |
| 85 // The browser window currently in the viewport. | 88 // The browser window currently in the viewport. |
| 86 aura::Window* current_window_; | 89 aura::Window* current_window_; |
| 87 | 90 |
| 88 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); | 91 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 } // namespace ash | 94 } // namespace ash |
| 92 } // namespace internal | 95 } // namespace internal |
| 93 | 96 |
| 94 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ | 97 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
| OLD | NEW |