| 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 20 matching lines...) Expand all Loading... |
| 31 #include "views/widget/native_widget_private.h" | 31 #include "views/widget/native_widget_private.h" |
| 32 #include "views/widget/native_widget_views.h" | 32 #include "views/widget/native_widget_views.h" |
| 33 #include "views/widget/root_view.h" | 33 #include "views/widget/root_view.h" |
| 34 #include "views/widget/tooltip_manager.h" | 34 #include "views/widget/tooltip_manager.h" |
| 35 #include "views/widget/widget.h" | 35 #include "views/widget/widget.h" |
| 36 | 36 |
| 37 #if defined(OS_WIN) | 37 #if defined(OS_WIN) |
| 38 #include "base/win/scoped_gdi_object.h" | 38 #include "base/win/scoped_gdi_object.h" |
| 39 #include "views/accessibility/native_view_accessibility_win.h" | 39 #include "views/accessibility/native_view_accessibility_win.h" |
| 40 #endif | 40 #endif |
| 41 #if defined(OS_LINUX) | 41 #if defined(TOOLKIT_USES_GTK) |
| 42 #include "ui/base/gtk/scoped_handle_gtk.h" | 42 #include "ui/base/gtk/scoped_handle_gtk.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 // Whether to use accelerated compositing when necessary (e.g. when a view has a | 47 // Whether to use accelerated compositing when necessary (e.g. when a view has a |
| 48 // transformation). | 48 // transformation). |
| 49 #if !defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) | 49 #if !defined(OS_CHROMEOS) || defined(TOUCH_UI) || defined(USE_AURA) |
| 50 bool use_acceleration_when_possible = true; | 50 bool use_acceleration_when_possible = true; |
| 51 #else | 51 #else |
| (...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2031 | 2031 |
| 2032 OSExchangeData data; | 2032 OSExchangeData data; |
| 2033 WriteDragData(press_pt, &data); | 2033 WriteDragData(press_pt, &data); |
| 2034 | 2034 |
| 2035 // Message the RootView to do the drag and drop. That way if we're removed | 2035 // Message the RootView to do the drag and drop. That way if we're removed |
| 2036 // the RootView can detect it and avoid calling us back. | 2036 // the RootView can detect it and avoid calling us back. |
| 2037 GetWidget()->RunShellDrag(this, data, drag_operations); | 2037 GetWidget()->RunShellDrag(this, data, drag_operations); |
| 2038 } | 2038 } |
| 2039 | 2039 |
| 2040 } // namespace views | 2040 } // namespace views |
| OLD | NEW |