| 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 <memory> |
| 9 |
| 8 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| 9 #include "ash/shelf/shelf_layout_manager_observer.h" | 11 #include "ash/shelf/shelf_layout_manager_observer.h" |
| 10 #include "ash/shell_observer.h" | 12 #include "ash/shell_observer.h" |
| 11 #include "ash/snap_to_pixel_layout_manager.h" | 13 #include "ash/snap_to_pixel_layout_manager.h" |
| 12 #include "ash/wm/dock/dock_types.h" | 14 #include "ash/wm/dock/dock_types.h" |
| 13 #include "ash/wm/dock/docked_window_layout_manager_observer.h" | 15 #include "ash/wm/dock/docked_window_layout_manager_observer.h" |
| 14 #include "ash/wm/window_state_observer.h" | 16 #include "ash/wm/window_state_observer.h" |
| 15 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
| 16 #include "base/macros.h" | 18 #include "base/macros.h" |
| 17 #include "base/memory/scoped_ptr.h" | |
| 18 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
| 19 #include "base/time/time.h" | 20 #include "base/time/time.h" |
| 20 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 21 #include "ui/aura/window_observer.h" | 22 #include "ui/aura/window_observer.h" |
| 22 #include "ui/gfx/geometry/rect.h" | 23 #include "ui/gfx/geometry/rect.h" |
| 23 #include "ui/keyboard/keyboard_controller_observer.h" | 24 #include "ui/keyboard/keyboard_controller_observer.h" |
| 24 #include "ui/wm/public/activation_change_observer.h" | 25 #include "ui/wm/public/activation_change_observer.h" |
| 25 | 26 |
| 26 namespace aura { | 27 namespace aura { |
| 27 class Window; | 28 class Window; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 313 |
| 313 // The last active window. Used to maintain stacking order even if no windows | 314 // The last active window. Used to maintain stacking order even if no windows |
| 314 // are currently focused. | 315 // are currently focused. |
| 315 aura::Window* last_active_window_; | 316 aura::Window* last_active_window_; |
| 316 | 317 |
| 317 // Timestamp of the last user-initiated action that changed docked state. | 318 // Timestamp of the last user-initiated action that changed docked state. |
| 318 // Used in UMA metrics. | 319 // Used in UMA metrics. |
| 319 base::Time last_action_time_; | 320 base::Time last_action_time_; |
| 320 | 321 |
| 321 // Observes shelf for bounds changes. | 322 // Observes shelf for bounds changes. |
| 322 scoped_ptr<ShelfWindowObserver> shelf_observer_; | 323 std::unique_ptr<ShelfWindowObserver> shelf_observer_; |
| 323 | 324 |
| 324 // Widget used to paint a background for the docked area. | 325 // Widget used to paint a background for the docked area. |
| 325 scoped_ptr<DockedBackgroundWidget> background_widget_; | 326 std::unique_ptr<DockedBackgroundWidget> background_widget_; |
| 326 | 327 |
| 327 // Observers of dock bounds changes. | 328 // Observers of dock bounds changes. |
| 328 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 329 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
| 329 | 330 |
| 330 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 331 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
| 331 }; | 332 }; |
| 332 | 333 |
| 333 } // namespace ash | 334 } // namespace ash |
| 334 | 335 |
| 335 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 336 #endif // ASH_WM_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
| OLD | NEW |