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 #include "ash/drag_drop/drag_drop_controller.h" | 5 #include "ash/drag_drop/drag_drop_controller.h" |
6 | 6 |
7 #include "ash/drag_drop/drag_drop_tracker.h" | 7 #include "ash/drag_drop/drag_drop_tracker.h" |
8 #include "ash/drag_drop/drag_image_view.h" | 8 #include "ash/drag_drop/drag_image_view.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/wm/coordinate_conversion.h" | 10 #include "ash/wm/coordinate_conversion.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 virtual gfx::Size GetMinimumSize() const OVERRIDE { | 88 virtual gfx::Size GetMinimumSize() const OVERRIDE { |
89 return gfx::Size(); | 89 return gfx::Size(); |
90 } | 90 } |
91 | 91 |
92 virtual gfx::Size GetMaximumSize() const OVERRIDE { | 92 virtual gfx::Size GetMaximumSize() const OVERRIDE { |
93 return gfx::Size(); | 93 return gfx::Size(); |
94 } | 94 } |
95 | 95 |
96 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, | 96 virtual void OnBoundsChanged(const gfx::Rect& old_bounds, |
97 const gfx::Rect& new_bounds) OVERRIDE {} | 97 const gfx::Rect& new_bounds) OVERRIDE {} |
98 virtual gfx::NativeCursor GetCursor(const gfx::Point& point) OVERRIDE { | |
99 return gfx::kNullCursor; | |
100 } | |
101 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { | 98 virtual int GetNonClientComponent(const gfx::Point& point) const OVERRIDE { |
102 return HTCAPTION; | 99 return HTCAPTION; |
103 } | 100 } |
104 virtual bool ShouldDescendIntoChildForEventHandling( | 101 virtual bool ShouldDescendIntoChildForEventHandling( |
105 aura::Window* child, | 102 aura::Window* child, |
106 const gfx::Point& location) OVERRIDE { | 103 const gfx::Point& location) OVERRIDE { |
107 return true; | 104 return true; |
108 } | 105 } |
109 virtual bool CanFocus() OVERRIDE { return true; } | 106 virtual bool CanFocus() OVERRIDE { return true; } |
110 virtual void OnCaptureLost() OVERRIDE { | 107 virtual void OnCaptureLost() OVERRIDE { |
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 drag_window_->RemoveObserver(this); | 554 drag_window_->RemoveObserver(this); |
558 drag_window_ = NULL; | 555 drag_window_ = NULL; |
559 drag_data_ = NULL; | 556 drag_data_ = NULL; |
560 // Cleanup can be called again while deleting DragDropTracker, so use Pass | 557 // Cleanup can be called again while deleting DragDropTracker, so use Pass |
561 // instead of reset to avoid double free. | 558 // instead of reset to avoid double free. |
562 drag_drop_tracker_.Pass(); | 559 drag_drop_tracker_.Pass(); |
563 } | 560 } |
564 | 561 |
565 } // namespace internal | 562 } // namespace internal |
566 } // namespace ash | 563 } // namespace ash |
OLD | NEW |