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

Side by Side Diff: ui/events/platform/x11/x11_event_source.h

Issue 750593003: Ozone X11 platform Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup leftover stuff Created 6 years 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
« no previous file with comments | « ui/events/platform/x11/BUILD.gn ('k') | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 5 #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
6 #define UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 6 #define UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/events/events_export.h" 9 #include "ui/events/events_export.h"
10 #include "ui/events/platform/platform_event_source.h" 10 #include "ui/events/platform/platform_event_source.h"
(...skipping 30 matching lines...) Expand all
41 // dropped on the floor. This method exists because mapping a window is 41 // dropped on the floor. This method exists because mapping a window is
42 // asynchronous (and we receive an XEvent when mapped), while there are also 42 // asynchronous (and we receive an XEvent when mapped), while there are also
43 // functions which require a mapped window. 43 // functions which require a mapped window.
44 void BlockUntilWindowMapped(XID window); 44 void BlockUntilWindowMapped(XID window);
45 45
46 protected: 46 protected:
47 XDisplay* display() { return display_; } 47 XDisplay* display() { return display_; }
48 48
49 private: 49 private:
50 // PlatformEventSource: 50 // PlatformEventSource:
51 uint32_t DispatchEvent(XEvent* xevent) override; 51 uint32_t DispatchEvent(base::NativeEvent xevent) override;
52 void StopCurrentEventStream() override; 52 void StopCurrentEventStream() override;
53 void OnDispatcherListChanged() override; 53 void OnDispatcherListChanged() override;
54 54
55 // The connection to the X11 server used to receive the events. 55 // The connection to the X11 server used to receive the events.
56 XDisplay* display_; 56 XDisplay* display_;
57 57
58 // Keeps track of whether this source should continue to dispatch all the 58 // Keeps track of whether this source should continue to dispatch all the
59 // available events. 59 // available events.
60 bool continue_stream_; 60 bool continue_stream_;
61 61
62 scoped_ptr<X11HotplugEventHandler> hotplug_event_handler_; 62 scoped_ptr<X11HotplugEventHandler> hotplug_event_handler_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(X11EventSource); 64 DISALLOW_COPY_AND_ASSIGN(X11EventSource);
65 }; 65 };
66 66
67 } // namespace ui 67 } // namespace ui
68 68
69 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 69 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
OLDNEW
« no previous file with comments | « ui/events/platform/x11/BUILD.gn ('k') | ui/events/platform/x11/x11_event_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698