Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index b1653692c42112e5fb0c051641545d6f62903c23..578d52f18aa6758915400ae8450a490b64c3b43a 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -100,6 +100,7 @@ |
#include "content/public/browser/guest_mode.h" |
#include "content/public/browser/invalidate_type.h" |
#include "content/public/browser/javascript_dialog_manager.h" |
+#include "content/public/browser/keyboard_event_processing_result.h" |
#include "content/public/browser/load_notification_details.h" |
#include "content/public/browser/navigation_details.h" |
#include "content/public/browser/notification_details.h" |
@@ -1768,11 +1769,10 @@ void WebContentsImpl::ScreenInfoChanged() { |
browser_plugin_embedder_->ScreenInfoChanged(); |
} |
-bool WebContentsImpl::PreHandleKeyboardEvent( |
- const NativeWebKeyboardEvent& event, |
- bool* is_keyboard_shortcut) { |
- return delegate_ && |
- delegate_->PreHandleKeyboardEvent(this, event, is_keyboard_shortcut); |
+KeyboardEventProcessingResult WebContentsImpl::PreHandleKeyboardEvent( |
+ const NativeWebKeyboardEvent& event) { |
+ return delegate_ ? delegate_->PreHandleKeyboardEvent(this, event) |
+ : KeyboardEventProcessingResult::NOT_HANDLED; |
} |
void WebContentsImpl::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |