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

Unified Diff: views/focus/accelerator_handler_aura.cc

Issue 7850026: Aura under Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: First version that links (and crashes) Created 9 years, 3 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
« ui/ui.gyp ('K') | « views/focus/accelerator_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/focus/accelerator_handler_aura.cc
diff --git a/views/focus/accelerator_handler_aura.cc b/views/focus/accelerator_handler_aura.cc
index 8f2f31a5bfda78b8153e9705ac08668ff4e9d3e1..25794b6c20630c26966533a46df7ee145a39cf00 100644
--- a/views/focus/accelerator_handler_aura.cc
+++ b/views/focus/accelerator_handler_aura.cc
@@ -9,12 +9,22 @@ namespace views {
AcceleratorHandler::AcceleratorHandler() {
}
-bool AcceleratorHandler::Dispatch(const MSG& msg) {
#if defined(OS_WIN)
+bool AcceleratorHandler::Dispatch(const MSG& msg) {
TranslateMessage(&msg);
DispatchMessage(&msg);
-#endif
return true;
}
+#else
+base::MessagePumpDispatcher::DispatchStatus AcceleratorHandler::Dispatch(
+ XEvent*) {
+ // TODO(saintlou): figure out what we should do here.
+ return EVENT_QUIT;
+}
+
+bool DispatchXEvent(XEvent* xev) {
+ return false;
+}
+#endif
} // namespace views
« ui/ui.gyp ('K') | « views/focus/accelerator_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698