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> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
14 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
16 #include "base/stl_util.h" | 17 #include "base/stl_util.h" |
17 #include "base/strings/stringprintf.h" | 18 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
19 #include "base/trace_event/trace_event.h" | 20 #include "base/trace_event/trace_event.h" |
| 21 #include "build/build_config.h" |
20 #include "third_party/skia/include/core/SkRect.h" | 22 #include "third_party/skia/include/core/SkRect.h" |
21 #include "ui/accessibility/ax_enums.h" | 23 #include "ui/accessibility/ax_enums.h" |
22 #include "ui/base/cursor/cursor.h" | 24 #include "ui/base/cursor/cursor.h" |
23 #include "ui/base/dragdrop/drag_drop_types.h" | 25 #include "ui/base/dragdrop/drag_drop_types.h" |
24 #include "ui/base/ime/input_method.h" | 26 #include "ui/base/ime/input_method.h" |
25 #include "ui/compositor/clip_recorder.h" | 27 #include "ui/compositor/clip_recorder.h" |
26 #include "ui/compositor/compositor.h" | 28 #include "ui/compositor/compositor.h" |
27 #include "ui/compositor/dip_util.h" | 29 #include "ui/compositor/dip_util.h" |
28 #include "ui/compositor/layer.h" | 30 #include "ui/compositor/layer.h" |
29 #include "ui/compositor/layer_animator.h" | 31 #include "ui/compositor/layer_animator.h" |
(...skipping 2358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2388 // Message the RootView to do the drag and drop. That way if we're removed | 2390 // Message the RootView to do the drag and drop. That way if we're removed |
2389 // the RootView can detect it and avoid calling us back. | 2391 // the RootView can detect it and avoid calling us back. |
2390 gfx::Point widget_location(event.location()); | 2392 gfx::Point widget_location(event.location()); |
2391 ConvertPointToWidget(this, &widget_location); | 2393 ConvertPointToWidget(this, &widget_location); |
2392 widget->RunShellDrag(this, data, widget_location, drag_operations, source); | 2394 widget->RunShellDrag(this, data, widget_location, drag_operations, source); |
2393 // WARNING: we may have been deleted. | 2395 // WARNING: we may have been deleted. |
2394 return true; | 2396 return true; |
2395 } | 2397 } |
2396 | 2398 |
2397 } // namespace views | 2399 } // namespace views |
OLD | NEW |