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

Unified Diff: ash/accelerators/accelerator_dispatcher_linux.cc

Issue 232133005: ozone: Protect X11-specific code under ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, one more X11 line showed up Created 6 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 | « no previous file | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_dispatcher_linux.cc
diff --git a/ash/accelerators/accelerator_dispatcher_linux.cc b/ash/accelerators/accelerator_dispatcher_linux.cc
index f129b645b908410e607cb76b9bdc72eac49d6874..130b6034c41856d4ebf2aaa8a78728377cfde0a4 100644
--- a/ash/accelerators/accelerator_dispatcher_linux.cc
+++ b/ash/accelerators/accelerator_dispatcher_linux.cc
@@ -64,7 +64,11 @@ class AcceleratorDispatcherLinux : public AcceleratorDispatcher,
if (IsKeyEvent(event)) {
ui::KeyEvent key_event(event, false);
if (MenuClosedForPossibleAccelerator(key_event)) {
+#if defined(USE_X11)
XPutBackEvent(event->xany.display, event);
+#else
+ NOTIMPLEMENTED();
+#endif
return ui::POST_DISPATCH_QUIT_LOOP;
}
« no previous file with comments | « no previous file | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698