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

Unified Diff: content/public/browser/web_contents_delegate.cc

Issue 2775553002: Adds the ability for WebContentsDelegate to decide if event should be updated (Closed)
Patch Set: Fix compile Created 3 years, 9 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 | « content/public/browser/web_contents_delegate.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents_delegate.cc
diff --git a/content/public/browser/web_contents_delegate.cc b/content/public/browser/web_contents_delegate.cc
index 9a576a9ad426fef9e5825b511e32d7837deac997..a79545e22e7159a4d159dc1db8bb24675944c860 100644
--- a/content/public/browser/web_contents_delegate.cc
+++ b/content/public/browser/web_contents_delegate.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/memory/singleton.h"
#include "build/build_config.h"
+#include "content/public/browser/keyboard_event_processing_result.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/security_style_explanations.h"
#include "content/public/browser/web_contents.h"
@@ -111,11 +112,10 @@ void WebContentsDelegate::ViewSourceForFrame(WebContents* source,
ui::PAGE_TRANSITION_LINK, false));
}
-bool WebContentsDelegate::PreHandleKeyboardEvent(
+KeyboardEventProcessingResult WebContentsDelegate::PreHandleKeyboardEvent(
WebContents* source,
- const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) {
- return false;
+ const NativeWebKeyboardEvent& event) {
+ return KeyboardEventProcessingResult::NOT_HANDLED;
}
bool WebContentsDelegate::PreHandleGestureEvent(
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698