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

Unified Diff: ui/gfx/compositor/test/test_compositor_host_linux.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/root_window_host_linux.cc ('k') | ui/gfx/compositor/test/test_compositor_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« no previous file with comments | « ui/aura/root_window_host_linux.cc ('k') | ui/gfx/compositor/test/test_compositor_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698