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

Unified Diff: ui/content_accelerators/accelerator_util.cc

Issue 1559163002: Clean up event flags a bit: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comment Created 4 years, 11 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/base/ime/input_method_chromeos.cc ('k') | ui/events/android/motion_event_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/content_accelerators/accelerator_util.cc
diff --git a/ui/content_accelerators/accelerator_util.cc b/ui/content_accelerators/accelerator_util.cc
index 1a3ee9567f52a9a10db97bfb346b8797e3c5b850..a2faa97fe70a44ffeafed368f6c7b9dbc1a131ff 100644
--- a/ui/content_accelerators/accelerator_util.cc
+++ b/ui/content_accelerators/accelerator_util.cc
@@ -39,7 +39,7 @@ ui::Accelerator GetAcceleratorFromNativeWebKeyboardEvent(
if (event.type == blink::WebInputEvent::KeyUp)
accelerator.set_type(ui::ET_KEY_RELEASED);
#if defined(USE_AURA)
- if (event.os_event && event.os_event->IsRepeat())
+ if (event.os_event && static_cast<ui::KeyEvent*>(event.os_event)->is_repeat())
accelerator.set_is_repeat(true);
#endif
return accelerator;
« no previous file with comments | « ui/base/ime/input_method_chromeos.cc ('k') | ui/events/android/motion_event_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698