Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_drag_drop_client_aurax11.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_dispatcher_client.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_x11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698