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

Unified Diff: chrome/browser/ui/views/find_bar_host.cc

Issue 739993002: MacViews: Fix build errors related to NativeWebKeyboardEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix for Sadrul Created 6 years, 1 month 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: chrome/browser/ui/views/find_bar_host.cc
diff --git a/chrome/browser/ui/views/find_bar_host.cc b/chrome/browser/ui/views/find_bar_host.cc
index 36604228e7fc3750f0d461d2629c898f623d2907..97a89ea7ff0673a57716214796165b3c80873092 100644
--- a/chrome/browser/ui/views/find_bar_host.cc
+++ b/chrome/browser/ui/views/find_bar_host.cc
@@ -70,7 +70,7 @@ bool FindBarHost::MaybeForwardKeyEventToWebpage(
// Make sure we don't have a text field element interfering with keyboard
// input. Otherwise Up and Down arrow key strokes get eaten. "Nom Nom Nom".
render_view_host->ClearFocusedElement();
- NativeWebKeyboardEvent event = GetKeyboardEvent(contents, key_event);
+ NativeWebKeyboardEvent event(key_event);
render_view_host->ForwardKeyboardEvent(event);
return true;
}
« no previous file with comments | « chrome/browser/ui/views/dropdown_bar_host_aura.cc ('k') | content/browser/renderer_host/native_web_keyboard_event_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698