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 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. | 5 #define _USE_MATH_DEFINES // For VC++ to get M_PI. This has to be first. |
6 | 6 |
7 #include "ui/views/view.h" | 7 #include "ui/views/view.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <cmath> | 10 #include <cmath> |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "ui/views/background.h" | 36 #include "ui/views/background.h" |
37 #include "ui/views/context_menu_controller.h" | 37 #include "ui/views/context_menu_controller.h" |
38 #include "ui/views/drag_controller.h" | 38 #include "ui/views/drag_controller.h" |
39 #include "ui/views/layout/layout_manager.h" | 39 #include "ui/views/layout/layout_manager.h" |
40 #include "ui/views/views_delegate.h" | 40 #include "ui/views/views_delegate.h" |
41 #include "ui/views/widget/native_widget_private.h" | 41 #include "ui/views/widget/native_widget_private.h" |
42 #include "ui/views/widget/root_view.h" | 42 #include "ui/views/widget/root_view.h" |
43 #include "ui/views/widget/tooltip_manager.h" | 43 #include "ui/views/widget/tooltip_manager.h" |
44 #include "ui/views/widget/widget.h" | 44 #include "ui/views/widget/widget.h" |
45 | 45 |
| 46 #if defined(USE_AURA) |
| 47 #include "ui/base/cursor/cursor.h" |
| 48 #endif |
| 49 |
46 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
47 #include "base/win/scoped_gdi_object.h" | 51 #include "base/win/scoped_gdi_object.h" |
48 #endif | 52 #endif |
49 | 53 |
50 namespace { | 54 namespace { |
51 | 55 |
52 // Whether to use accelerated compositing when necessary (e.g. when a view has a | 56 // Whether to use accelerated compositing when necessary (e.g. when a view has a |
53 // transformation). | 57 // transformation). |
54 #if defined(USE_AURA) | 58 #if defined(USE_AURA) |
55 bool use_acceleration_when_possible = true; | 59 bool use_acceleration_when_possible = true; |
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2320 ConvertPointToWidget(this, &widget_location); | 2324 ConvertPointToWidget(this, &widget_location); |
2321 widget->RunShellDrag(this, data, widget_location, drag_operations, source); | 2325 widget->RunShellDrag(this, data, widget_location, drag_operations, source); |
2322 // WARNING: we may have been deleted. | 2326 // WARNING: we may have been deleted. |
2323 return true; | 2327 return true; |
2324 #else | 2328 #else |
2325 return false; | 2329 return false; |
2326 #endif // !defined(OS_MACOSX) | 2330 #endif // !defined(OS_MACOSX) |
2327 } | 2331 } |
2328 | 2332 |
2329 } // namespace views | 2333 } // namespace views |
OLD | NEW |