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

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: 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/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..02eb570343c29bcb89000305d2aee074c71f79a6 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 base::DispatchStatus Dispatch(const base::NativeEvent& msg) OVERRIDE;
void Draw();
@@ -104,16 +99,10 @@ void TestCompositorHostLinux::ScheduleDraw() {
}
}
-#if defined(USE_AURA)
-base::MessagePumpDispatcher::DispatchStatus TestCompositorHostLinux::Dispatch(
- XEvent* xev) {
- return MessagePumpDispatcher::EVENT_IGNORED;
+base::DispatchStatus TestCompositorHostLinux::Dispatch(
+ const base::NativeEvent& event) {
+ return base::EVENT_IGNORED;
}
-#elif defined(TOOLKIT_GTK)
-bool TestCompositorHostLinux::Dispatch(GdkEvent*) {
- return false;
-}
-#endif
void TestCompositorHostLinux::Draw() {
if (compositor_.get())

Powered by Google App Engine
This is Rietveld 408576698