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

Unified Diff: ui/aura/monitor_change_observer_x11.cc

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync, addressed comments Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/monitor_change_observer_x11.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/monitor_change_observer_x11.cc
diff --git a/ui/aura/monitor_change_observer_x11.cc b/ui/aura/monitor_change_observer_x11.cc
index 8618d1fdf110903a3d13ca7627a36ed6a56ea079..bb2904f1c2534982b08cd07f1ee21e75214ab31a 100644
--- a/ui/aura/monitor_change_observer_x11.cc
+++ b/ui/aura/monitor_change_observer_x11.cc
@@ -55,13 +55,11 @@ MonitorChangeObserverX11::~MonitorChangeObserverX11() {
WindowDispatcherDestroying(x_root_window_);
}
-base::MessagePumpDispatcher::DispatchStatus
-MonitorChangeObserverX11::Dispatch(XEvent* event) {
+bool MonitorChangeObserverX11::Dispatch(const base::NativeEvent& event) {
if (event->type - xrandr_event_base_ == RRScreenChangeNotify) {
NotifyMonitorChange();
- return base::MessagePumpDispatcher::EVENT_PROCESSED;
}
- return base::MessagePumpDispatcher::EVENT_IGNORED;
+ return true;
}
void MonitorChangeObserverX11::NotifyMonitorChange() {
« no previous file with comments | « ui/aura/monitor_change_observer_x11.h ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698