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

Unified Diff: chrome/browser/ui/browser_window.h

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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_window.h
diff --git a/chrome/browser/ui/browser_window.h b/chrome/browser/ui/browser_window.h
index 8b277b3d2fb4acb4e8969e0759d7c5b0a31612a4..9394cb955740e52edd8b9ff9bb09391c09e49ab8 100644
--- a/chrome/browser/ui/browser_window.h
+++ b/chrome/browser/ui/browser_window.h
@@ -42,6 +42,7 @@ class SaveCardBubbleView;
namespace content {
class WebContents;
struct NativeWebKeyboardEvent;
+enum class KeyboardEventProcessingResult;
}
namespace extensions {
@@ -308,12 +309,8 @@ class BrowserWindow : public ui::BaseWindow {
// Allows the BrowserWindow object to handle the specified keyboard event
// before sending it to the renderer.
- // Returns true if the |event| was handled. Otherwise, if the |event| would
- // be handled in HandleKeyboardEvent() method as a normal keyboard shortcut,
- // |*is_keyboard_shortcut| should be set to true.
- virtual bool PreHandleKeyboardEvent(
- const content::NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) = 0;
+ virtual content::KeyboardEventProcessingResult PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) = 0;
// Allows the BrowserWindow object to handle the specified keyboard event,
// if the renderer did not process it.
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698