| 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_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 virtual void OnWindowActivated(aura::Window* gained_active, | 99 virtual void OnWindowActivated(aura::Window* gained_active, |
| 100 aura::Window* lost_active) OVERRIDE; | 100 aura::Window* lost_active) OVERRIDE; |
| 101 | 101 |
| 102 // Overridden from ShelfLayoutManagerObserver | 102 // Overridden from ShelfLayoutManagerObserver |
| 103 virtual void WillChangeVisibilityState( | 103 virtual void WillChangeVisibilityState( |
| 104 ShelfVisibilityState new_state) OVERRIDE; | 104 ShelfVisibilityState new_state) OVERRIDE; |
| 105 | 105 |
| 106 private: | 106 private: |
| 107 friend class PanelLayoutManagerTest; | 107 friend class PanelLayoutManagerTest; |
| 108 friend class PanelWindowResizerTest; | 108 friend class PanelWindowResizerTest; |
| 109 friend class DockedWindowResizerTest; |
| 110 friend class DockedWindowLayoutManagerTest; |
| 109 | 111 |
| 110 views::Widget* CreateCalloutWidget(); | 112 views::Widget* CreateCalloutWidget(); |
| 111 | 113 |
| 112 struct PanelInfo{ | 114 struct PanelInfo{ |
| 113 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} | 115 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} |
| 114 | 116 |
| 115 bool operator==(const aura::Window* other_window) const { | 117 bool operator==(const aura::Window* other_window) const { |
| 116 return window == other_window; | 118 return window == other_window; |
| 117 } | 119 } |
| 118 | 120 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 aura::Window* last_active_panel_; | 170 aura::Window* last_active_panel_; |
| 169 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 171 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
| 170 | 172 |
| 171 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 173 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace internal | 176 } // namespace internal |
| 175 } // namespace ash | 177 } // namespace ash |
| 176 | 178 |
| 177 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 179 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |