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/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 "XdndSelection", | 45 "XdndSelection", |
46 "XdndStatus", | 46 "XdndStatus", |
47 "XdndTypeList", | 47 "XdndTypeList", |
48 NULL | 48 NULL |
49 }; | 49 }; |
50 | 50 |
51 } // namespace | 51 } // namespace |
52 | 52 |
53 namespace views { | 53 namespace views { |
54 | 54 |
55 class DesktopDragDropClientAuraX11::X11DragContext | 55 class DesktopDragDropClientAuraX11::X11DragContext : |
56 : public MessageLoop::Dispatcher { | 56 public base::MessageLoop::Dispatcher { |
57 public: | 57 public: |
58 X11DragContext(ui::X11AtomCache* atom_cache, | 58 X11DragContext(ui::X11AtomCache* atom_cache, |
59 const XClientMessageEvent& event); | 59 const XClientMessageEvent& event); |
60 virtual ~X11DragContext(); | 60 virtual ~X11DragContext(); |
61 | 61 |
62 const std::vector<Atom>& targets() { return targets_; } | 62 const std::vector<Atom>& targets() { return targets_; } |
63 | 63 |
64 // Reads the "XdndActionList" property from |source_window| and copies it | 64 // Reads the "XdndActionList" property from |source_window| and copies it |
65 // into |actions|. | 65 // into |actions|. |
66 void ReadActions(); | 66 void ReadActions(); |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // through normal xlib machinery, but instead passes through the low level | 428 // through normal xlib machinery, but instead passes through the low level |
429 // xProto (the x11 wire format) that I don't understand. | 429 // xProto (the x11 wire format) that I don't understand. |
430 // | 430 // |
431 // I'm unsure if I have to jump through those hoops, or if XSendEvent is | 431 // I'm unsure if I have to jump through those hoops, or if XSendEvent is |
432 // sufficient. | 432 // sufficient. |
433 | 433 |
434 XSendEvent(xdisplay_, xid, False, 0, xev); | 434 XSendEvent(xdisplay_, xid, False, 0, xev); |
435 } | 435 } |
436 | 436 |
437 } // namespace views | 437 } // namespace views |
OLD | NEW |