OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/events/platform/x11/x11_event_source.h" | 5 #include "ui/events/platform/x11/x11_event_source.h" |
6 | 6 |
7 #include <X11/Xlib.h> | 7 #include <X11/Xlib.h> |
8 | 8 |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/message_loop/message_pump_libevent.h" | 10 #include "base/message_loop/message_pump_libevent.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 } | 53 } |
54 | 54 |
55 base::MessagePumpLibevent::FileDescriptorWatcher watcher_controller_; | 55 base::MessagePumpLibevent::FileDescriptorWatcher watcher_controller_; |
56 bool initialized_; | 56 bool initialized_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(X11EventSourceLibevent); | 58 DISALLOW_COPY_AND_ASSIGN(X11EventSourceLibevent); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace | 61 } // namespace |
62 | 62 |
63 scoped_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() { | 63 scoped_ptr<PlatformEventSource> CreateX11LibeventSource() { |
64 return scoped_ptr<PlatformEventSource>( | 64 return scoped_ptr<PlatformEventSource>( |
65 new X11EventSourceLibevent(gfx::GetXDisplay())); | 65 new X11EventSourceLibevent(gfx::GetXDisplay())); |
66 } | 66 } |
67 | 67 |
| 68 scoped_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() { |
| 69 return CreateX11LibeventSource(); |
| 70 } |
| 71 |
68 } // namespace ui | 72 } // namespace ui |
OLD | NEW |