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

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

Issue 274383002: events: Remove ability to terminate a nested message-loop from the event-source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 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 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 29 matching lines...) Expand all
40 // asynchronous (and we receive an XEvent when mapped), while there are also 40 // asynchronous (and we receive an XEvent when mapped), while there are also
41 // functions which require a mapped window. 41 // functions which require a mapped window.
42 void BlockUntilWindowMapped(XID window); 42 void BlockUntilWindowMapped(XID window);
43 43
44 protected: 44 protected:
45 XDisplay* display() { return display_; } 45 XDisplay* display() { return display_; }
46 46
47 private: 47 private:
48 // PlatformEventSource: 48 // PlatformEventSource:
49 virtual uint32_t DispatchEvent(XEvent* xevent) OVERRIDE; 49 virtual uint32_t DispatchEvent(XEvent* xevent) OVERRIDE;
50 virtual void StopCurrentEventStream() OVERRIDE;
50 51
51 // The connection to the X11 server used to receive the events. 52 // The connection to the X11 server used to receive the events.
52 XDisplay* display_; 53 XDisplay* display_;
53 54
55 // Keeps track of whether this source should continue to dispatch all the
56 // available events.
57 bool continue_stream_;
58
54 DISALLOW_COPY_AND_ASSIGN(X11EventSource); 59 DISALLOW_COPY_AND_ASSIGN(X11EventSource);
55 }; 60 };
56 61
57 } // namespace ui 62 } // namespace ui
58 63
59 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ 64 #endif // UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698