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

Unified Diff: ui/views/focus/accelerator_handler_aura.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/views/focus/accelerator_handler.h ('k') | ui/views/focus/accelerator_handler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/focus/accelerator_handler_aura.cc
diff --git a/ui/views/focus/accelerator_handler_aura.cc b/ui/views/focus/accelerator_handler_aura.cc
index 274de1e7274a3565819a90a6c5f752b50dc35d65..8daa0f394e96630f77c1c59cad7e8921c8fb2711 100644
--- a/ui/views/focus/accelerator_handler_aura.cc
+++ b/ui/views/focus/accelerator_handler_aura.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,21 +9,18 @@ namespace views {
AcceleratorHandler::AcceleratorHandler() {
}
+bool AcceleratorHandler::Dispatch(const base::NativeEvent& event) {
#if defined(OS_WIN)
-bool AcceleratorHandler::Dispatch(const MSG& msg) {
- TranslateMessage(&msg);
- DispatchMessage(&msg);
+ TranslateMessage(&event);
+ DispatchMessage(&event);
+#endif // defined(OS_WIN)
return true;
}
-#else
-base::MessagePumpDispatcher::DispatchStatus AcceleratorHandler::Dispatch(
- XEvent*) {
- return base::MessagePumpDispatcher::EVENT_IGNORED;
-}
+#if defined(USE_X11)
bool DispatchXEvent(XEvent* xev) {
return false;
}
-#endif // defined(OS_WIN)
+#endif // defined(USE_X11)
} // namespace views
« no previous file with comments | « ui/views/focus/accelerator_handler.h ('k') | ui/views/focus/accelerator_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698