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

Unified Diff: ui/views/focus/accelerator_handler.h

Issue 9958152: Consolidate win/x dispatchers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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/views/focus/accelerator_handler.h
diff --git a/ui/views/focus/accelerator_handler.h b/ui/views/focus/accelerator_handler.h
index 7897294752cc6dc04c542701ad9d0569c124585f..716e5689a77613f3778507765832b9d29ed84b9f 100644
--- a/ui/views/focus/accelerator_handler.h
+++ b/ui/views/focus/accelerator_handler.h
@@ -35,16 +35,13 @@ class VIEWS_EXPORT AcceleratorHandler : public MessageLoop::Dispatcher {
// Dispatcher method. This returns true if an accelerator was processed by the
// focus manager
-#if defined(OS_WIN)
- virtual bool Dispatch(const MSG& msg) OVERRIDE;
+#if defined(OS_WIN) || defined(USE_AURA)
+ virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
#elif defined(USE_WAYLAND)
virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
base::wayland::WaylandEvent* ev) OVERRIDE;
#elif defined(OS_MACOSX)
// TODO(dhollowa): Implement on Mac. http://crbug.com/109946
-#elif defined(USE_AURA)
- virtual base::MessagePumpDispatcher::DispatchStatus Dispatch(
- XEvent* xev) OVERRIDE;
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698