OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "views/view.h" | 5 #include "views/view.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "ui/gfx/interpolated_transform.h" | 22 #include "ui/gfx/interpolated_transform.h" |
23 #include "ui/gfx/path.h" | 23 #include "ui/gfx/path.h" |
24 #include "ui/gfx/point3.h" | 24 #include "ui/gfx/point3.h" |
25 #include "ui/gfx/transform.h" | 25 #include "ui/gfx/transform.h" |
26 #include "ui/views/layout/layout_manager.h" | 26 #include "ui/views/layout/layout_manager.h" |
27 #include "views/background.h" | 27 #include "views/background.h" |
28 #include "views/context_menu_controller.h" | 28 #include "views/context_menu_controller.h" |
29 #include "views/drag_controller.h" | 29 #include "views/drag_controller.h" |
30 #include "views/views_delegate.h" | 30 #include "views/views_delegate.h" |
31 #include "views/widget/native_widget_private.h" | 31 #include "views/widget/native_widget_private.h" |
32 #include "views/widget/native_widget_views.h" | |
33 #include "views/widget/root_view.h" | 32 #include "views/widget/root_view.h" |
34 #include "views/widget/tooltip_manager.h" | 33 #include "views/widget/tooltip_manager.h" |
35 #include "views/widget/widget.h" | 34 #include "views/widget/widget.h" |
36 | 35 |
37 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
38 #include "base/win/scoped_gdi_object.h" | 37 #include "base/win/scoped_gdi_object.h" |
39 #include "ui/views/accessibility/native_view_accessibility_win.h" | 38 #include "ui/views/accessibility/native_view_accessibility_win.h" |
40 #endif | 39 #endif |
41 #if defined(TOOLKIT_USES_GTK) | 40 #if defined(TOOLKIT_USES_GTK) |
42 #include "ui/base/gtk/scoped_handle_gtk.h" | 41 #include "ui/base/gtk/scoped_handle_gtk.h" |
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 | 2069 |
2071 OSExchangeData data; | 2070 OSExchangeData data; |
2072 WriteDragData(press_pt, &data); | 2071 WriteDragData(press_pt, &data); |
2073 | 2072 |
2074 // Message the RootView to do the drag and drop. That way if we're removed | 2073 // Message the RootView to do the drag and drop. That way if we're removed |
2075 // the RootView can detect it and avoid calling us back. | 2074 // the RootView can detect it and avoid calling us back. |
2076 GetWidget()->RunShellDrag(this, data, drag_operations); | 2075 GetWidget()->RunShellDrag(this, data, drag_operations); |
2077 } | 2076 } |
2078 | 2077 |
2079 } // namespace views | 2078 } // namespace views |
OLD | NEW |