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

Unified Diff: ui/views/focus/accelerator_handler_win.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/views/focus/accelerator_handler_win.cc
diff --git a/ui/views/focus/accelerator_handler_win.cc b/ui/views/focus/accelerator_handler_win.cc
index 13c3081ff85899ceafe1050194a110c101f7d7a0..0599ceb0af65ed35f60897d560680181d240f518 100644
--- a/ui/views/focus/accelerator_handler_win.cc
+++ b/ui/views/focus/accelerator_handler_win.cc
@@ -15,7 +15,8 @@ namespace views {
AcceleratorHandler::AcceleratorHandler() {
}
-bool AcceleratorHandler::Dispatch(const MSG& msg) {
+base::DispatchStatus AcceleratorHandler::Dispatch(
+ const base::NativeEvent& msg) {
bool process_message = true;
if (msg.message >= WM_KEYFIRST && msg.message <= WM_KEYLAST) {
@@ -41,7 +42,7 @@ bool AcceleratorHandler::Dispatch(const MSG& msg) {
// Don't translate/dispatch the KEYUP since we have eaten the
// associated KEYDOWN.
pressed_keys_.erase(iter);
- return true;
+ return base::EVENT_PROCESSED;
}
break;
}
@@ -54,7 +55,7 @@ bool AcceleratorHandler::Dispatch(const MSG& msg) {
DispatchMessage(&msg);
}
- return true;
+ return base::EVENT_PROCESSED;
}
} // namespace views
« base/message_pump_dispatcher.h ('K') | « ui/views/focus/accelerator_handler_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698