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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} | 113 virtual void OnDeviceScaleFactorChanged(float device_scale_factor) OVERRIDE {} |
114 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} | 114 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE {} |
115 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} | 115 virtual void OnWindowDestroyed(aura::Window* window) OVERRIDE {} |
116 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} | 116 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE {} |
117 virtual bool HasHitTestMask() const OVERRIDE { | 117 virtual bool HasHitTestMask() const OVERRIDE { |
118 return true; | 118 return true; |
119 } | 119 } |
120 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE { | 120 virtual void GetHitTestMask(gfx::Path* mask) const OVERRIDE { |
121 DCHECK(mask->isEmpty()); | 121 DCHECK(mask->isEmpty()); |
122 } | 122 } |
| 123 virtual void OnLinkDisambiguationPopupRequested( |
| 124 const gfx::Rect& target_rect, const SkBitmap& zoomed_bitmap) OVERRIDE {} |
123 | 125 |
124 private: | 126 private: |
125 DragDropController* drag_drop_controller_; | 127 DragDropController* drag_drop_controller_; |
126 | 128 |
127 DISALLOW_COPY_AND_ASSIGN(DragDropTrackerDelegate); | 129 DISALLOW_COPY_AND_ASSIGN(DragDropTrackerDelegate); |
128 }; | 130 }; |
129 | 131 |
130 //////////////////////////////////////////////////////////////////////////////// | 132 //////////////////////////////////////////////////////////////////////////////// |
131 // DragDropController, public: | 133 // DragDropController, public: |
132 | 134 |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 if (drag_window_) | 559 if (drag_window_) |
558 drag_window_->RemoveObserver(this); | 560 drag_window_->RemoveObserver(this); |
559 drag_window_ = NULL; | 561 drag_window_ = NULL; |
560 drag_data_ = NULL; | 562 drag_data_ = NULL; |
561 // Cleanup can be called again while deleting DragDropTracker, so use Pass | 563 // Cleanup can be called again while deleting DragDropTracker, so use Pass |
562 // instead of reset to avoid double free. | 564 // instead of reset to avoid double free. |
563 drag_drop_tracker_.Pass(); | 565 drag_drop_tracker_.Pass(); |
564 } | 566 } |
565 | 567 |
566 } // namespace ash | 568 } // namespace ash |
OLD | NEW |