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

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: 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);
sadrul 2014/11/21 19:33:42 Looks like you can remove DropdownBarHost::GetKeyb
Andre 2014/11/22 00:09:58 Yes, I removed it.
+ NativeWebKeyboardEvent event(key_event);
render_view_host->ForwardKeyboardEvent(event);
return true;
}

Powered by Google App Engine
This is Rietveld 408576698