| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 6 #define ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/shelf_layout_manager_observer.h" | 9 #include "ash/shelf/shelf_layout_manager_observer.h" |
| 10 #include "ash/shell_observer.h" | 10 #include "ash/shell_observer.h" |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 wm::WindowStateType old_type) override; | 172 wm::WindowStateType old_type) override; |
| 173 | 173 |
| 174 // aura::WindowObserver: | 174 // aura::WindowObserver: |
| 175 void OnWindowBoundsChanged(aura::Window* window, | 175 void OnWindowBoundsChanged(aura::Window* window, |
| 176 const gfx::Rect& old_bounds, | 176 const gfx::Rect& old_bounds, |
| 177 const gfx::Rect& new_bounds) override; | 177 const gfx::Rect& new_bounds) override; |
| 178 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; | 178 void OnWindowVisibilityChanging(aura::Window* window, bool visible) override; |
| 179 void OnWindowDestroying(aura::Window* window) override; | 179 void OnWindowDestroying(aura::Window* window) override; |
| 180 | 180 |
| 181 // aura::client::ActivationChangeObserver: | 181 // aura::client::ActivationChangeObserver: |
| 182 void OnWindowActivated(aura::Window* gained_active, | 182 void OnWindowActivated( |
| 183 aura::Window* lost_active) override; | 183 aura::client::ActivationChangeObserver::ActivationReason reason, |
| 184 aura::Window* gained_active, |
| 185 aura::Window* lost_active) override; |
| 184 | 186 |
| 185 private: | 187 private: |
| 186 class ShelfWindowObserver; | 188 class ShelfWindowObserver; |
| 187 friend class DockedWindowLayoutManagerTest; | 189 friend class DockedWindowLayoutManagerTest; |
| 188 friend class DockedWindowResizerTest; | 190 friend class DockedWindowResizerTest; |
| 189 | 191 |
| 190 // Width of the gap between the docked windows and a workspace. | 192 // Width of the gap between the docked windows and a workspace. |
| 191 static const int kMinDockGap; | 193 static const int kMinDockGap; |
| 192 | 194 |
| 193 // Ideal (starting) width of the dock. | 195 // Ideal (starting) width of the dock. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 327 |
| 326 // Observers of dock bounds changes. | 328 // Observers of dock bounds changes. |
| 327 ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 329 ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
| 328 | 330 |
| 329 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 331 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
| 330 }; | 332 }; |
| 331 | 333 |
| 332 } // namespace ash | 334 } // namespace ash |
| 333 | 335 |
| 334 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 336 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| OLD | NEW |