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 "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.h" |
6 | 6 |
7 #include <X11/Xatom.h> | 7 #include <X11/Xatom.h> |
8 | 8 |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 #include "base/message_loop/message_pump_dispatcher.h" | 12 #include "base/message_loop/message_pump_dispatcher.h" |
13 #include "ui/aura/client/drag_drop_client.h" | 13 #include "ui/aura/client/drag_drop_client.h" |
14 #include "ui/aura/client/drag_drop_delegate.h" | 14 #include "ui/aura/client/drag_drop_delegate.h" |
15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
16 #include "ui/aura/window_event_dispatcher.h" | 16 #include "ui/aura/window_tree_host.h" |
17 #include "ui/base/dragdrop/drag_drop_types.h" | 17 #include "ui/base/dragdrop/drag_drop_types.h" |
18 #include "ui/base/dragdrop/drop_target_event.h" | 18 #include "ui/base/dragdrop/drop_target_event.h" |
19 #include "ui/base/dragdrop/os_exchange_data.h" | 19 #include "ui/base/dragdrop/os_exchange_data.h" |
20 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" | 20 #include "ui/base/dragdrop/os_exchange_data_provider_aurax11.h" |
21 #include "ui/base/x/selection_utils.h" | 21 #include "ui/base/x/selection_utils.h" |
22 #include "ui/base/x/x11_util.h" | 22 #include "ui/base/x/x11_util.h" |
23 #include "ui/events/event.h" | 23 #include "ui/events/event.h" |
24 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" | 24 #include "ui/views/widget/desktop_aura/desktop_native_cursor_manager.h" |
25 | 25 |
26 using aura::client::DragDropDelegate; | 26 using aura::client::DragDropDelegate; |
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
959 // GdkEvent about the failed drag. (And sending this message doesn't appear | 959 // GdkEvent about the failed drag. (And sending this message doesn't appear |
960 // to go through normal xlib machinery, but instead passes through the low | 960 // to go through normal xlib machinery, but instead passes through the low |
961 // level xProto (the x11 wire format) that I don't understand. | 961 // level xProto (the x11 wire format) that I don't understand. |
962 // | 962 // |
963 // I'm unsure if I have to jump through those hoops, or if XSendEvent is | 963 // I'm unsure if I have to jump through those hoops, or if XSendEvent is |
964 // sufficient. | 964 // sufficient. |
965 XSendEvent(xdisplay_, xid, False, 0, xev); | 965 XSendEvent(xdisplay_, xid, False, 0, xev); |
966 } | 966 } |
967 | 967 |
968 } // namespace views | 968 } // namespace views |
OLD | NEW |