Index: ui/gfx/compositor/test/test_compositor_host_linux.cc |
diff --git a/ui/gfx/compositor/test/test_compositor_host_linux.cc b/ui/gfx/compositor/test/test_compositor_host_linux.cc |
index 61578b88ab78d4c4702a9c3845154e549cb721a1..b601810cf5867fab0ba84327b2baa1ec69107f4d 100644 |
--- a/ui/gfx/compositor/test/test_compositor_host_linux.cc |
+++ b/ui/gfx/compositor/test/test_compositor_host_linux.cc |
@@ -38,12 +38,7 @@ class TestCompositorHostLinux : public TestCompositorHost, |
virtual void ScheduleDraw() OVERRIDE; |
// Overridden from MessagePumpDispatcher: |
-#if defined(USE_AURA) |
- virtual base::MessagePumpDispatcher::DispatchStatus |
- Dispatch(XEvent* xev) OVERRIDE; |
-#elif defined(TOOLKIT_GTK) |
- virtual bool Dispatch(GdkEvent* event) OVERRIDE; |
-#endif |
+ virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE; |
void Draw(); |
@@ -104,16 +99,9 @@ void TestCompositorHostLinux::ScheduleDraw() { |
} |
} |
-#if defined(USE_AURA) |
-base::MessagePumpDispatcher::DispatchStatus TestCompositorHostLinux::Dispatch( |
- XEvent* xev) { |
- return MessagePumpDispatcher::EVENT_IGNORED; |
+bool TestCompositorHostLinux::Dispatch(const base::NativeEvent& event) { |
+ return true; |
} |
-#elif defined(TOOLKIT_GTK) |
-bool TestCompositorHostLinux::Dispatch(GdkEvent*) { |
- return false; |
-} |
-#endif |
void TestCompositorHostLinux::Draw() { |
if (compositor_.get()) |