| 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_DRAG_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_WM_DRAG_WINDOW_CONTROLLER_H_ |
| 6 #define ASH_WM_DRAG_WINDOW_CONTROLLER_H_ | 6 #define ASH_WM_DRAG_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "ui/gfx/display.h" | 12 #include "ui/gfx/display.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 | 14 |
| 15 namespace aura { | 15 namespace aura { |
| 16 class Window; | 16 class Window; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace ui { | 19 namespace ui { |
| 20 class Layer; | 20 class Layer; |
| 21 class LayerTreeOwner; | 21 class LayerTreeOwner; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { | 24 namespace views { |
| 25 class Widget; | 25 class Widget; |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ash { | 28 namespace ash { |
| 29 namespace internal { | |
| 30 | 29 |
| 31 // DragWindowController is responsible for showing a semi-transparent window | 30 // DragWindowController is responsible for showing a semi-transparent window |
| 32 // while dragging a window across displays. | 31 // while dragging a window across displays. |
| 33 class ASH_EXPORT DragWindowController { | 32 class ASH_EXPORT DragWindowController { |
| 34 public: | 33 public: |
| 35 explicit DragWindowController(aura::Window* window); | 34 explicit DragWindowController(aura::Window* window); |
| 36 virtual ~DragWindowController(); | 35 virtual ~DragWindowController(); |
| 37 | 36 |
| 38 // Sets the display where the window is placed after the window is dropped. | 37 // Sets the display where the window is placed after the window is dropped. |
| 39 void SetDestinationDisplay(const gfx::Display& dst_display); | 38 void SetDestinationDisplay(const gfx::Display& dst_display); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 gfx::Rect bounds_; | 83 gfx::Rect bounds_; |
| 85 | 84 |
| 86 views::Widget* drag_widget_; | 85 views::Widget* drag_widget_; |
| 87 | 86 |
| 88 // The copy of window_->layer() and its descendants. | 87 // The copy of window_->layer() and its descendants. |
| 89 scoped_ptr<ui::LayerTreeOwner> layer_owner_; | 88 scoped_ptr<ui::LayerTreeOwner> layer_owner_; |
| 90 | 89 |
| 91 DISALLOW_COPY_AND_ASSIGN(DragWindowController); | 90 DISALLOW_COPY_AND_ASSIGN(DragWindowController); |
| 92 }; | 91 }; |
| 93 | 92 |
| 94 } // namespace internal | |
| 95 } // namespace ash | 93 } // namespace ash |
| 96 | 94 |
| 97 #endif // ASH_WM_DRAG_WINDOW_CONTROLLER_H_ | 95 #endif // ASH_WM_DRAG_WINDOW_CONTROLLER_H_ |
| OLD | NEW |