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

Unified Diff: ui/aura/root_window_host_linux.cc

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup 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
Index: ui/aura/root_window_host_linux.cc
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc
index cd2597b60d385bd6321984de74407a4586dab1b4..db0ca97dae38a1963475877da5b639951a971aeb 100644
--- a/ui/aura/root_window_host_linux.cc
+++ b/ui/aura/root_window_host_linux.cc
@@ -348,8 +348,9 @@ RootWindowHostLinux::~RootWindowHostLinux() {
XFreeCursor(xdisplay_, invisible_cursor_);
}
-base::MessagePumpDispatcher::DispatchStatus RootWindowHostLinux::Dispatch(
- XEvent* xev) {
+base::DispatchStatus RootWindowHostLinux::Dispatch(
+ const base::NativeEvent& event) {
+ XEvent* xev = event;
bool handled = false;
// See crbug.com/109884.
@@ -505,8 +506,7 @@ base::MessagePumpDispatcher::DispatchStatus RootWindowHostLinux::Dispatch(
break;
}
}
- return handled ? base::MessagePumpDispatcher::EVENT_PROCESSED :
- base::MessagePumpDispatcher::EVENT_IGNORED;
+ return handled ? base::EVENT_PROCESSED : base::EVENT_IGNORED;
}
void RootWindowHostLinux::SetRootWindow(RootWindow* root_window) {

Powered by Google App Engine
This is Rietveld 408576698