| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Overridden from ShelfLayoutManagerObserver | 117 // Overridden from ShelfLayoutManagerObserver |
| 118 virtual void WillChangeVisibilityState( | 118 virtual void WillChangeVisibilityState( |
| 119 ShelfVisibilityState new_state) override; | 119 ShelfVisibilityState new_state) override; |
| 120 | 120 |
| 121 private: | 121 private: |
| 122 friend class PanelLayoutManagerTest; | 122 friend class PanelLayoutManagerTest; |
| 123 friend class PanelWindowResizerTest; | 123 friend class PanelWindowResizerTest; |
| 124 friend class DockedWindowResizerTest; | 124 friend class DockedWindowResizerTest; |
| 125 friend class DockedWindowLayoutManagerTest; | 125 friend class DockedWindowLayoutManagerTest; |
| 126 friend class WorkspaceControllerTest; | 126 friend class WorkspaceControllerTest; |
| 127 friend class AcceleratorControllerTest; |
| 127 | 128 |
| 128 views::Widget* CreateCalloutWidget(); | 129 views::Widget* CreateCalloutWidget(); |
| 129 | 130 |
| 130 struct PanelInfo{ | 131 struct PanelInfo{ |
| 131 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} | 132 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} |
| 132 | 133 |
| 133 bool operator==(const aura::Window* other_window) const { | 134 bool operator==(const aura::Window* other_window) const { |
| 134 return window == other_window; | 135 return window == other_window; |
| 135 } | 136 } |
| 136 | 137 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 // are currently focused. | 193 // are currently focused. |
| 193 aura::Window* last_active_panel_; | 194 aura::Window* last_active_panel_; |
| 194 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 195 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
| 195 | 196 |
| 196 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 197 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
| 197 }; | 198 }; |
| 198 | 199 |
| 199 } // namespace ash | 200 } // namespace ash |
| 200 | 201 |
| 201 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 202 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
| OLD | NEW |