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

Unified Diff: chrome/test/base/test_browser_window.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 | « chrome/test/base/test_browser_window.h ('k') | content/browser/frame_host/interstitial_page_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/test_browser_window.cc
diff --git a/chrome/test/base/test_browser_window.cc b/chrome/test/base/test_browser_window.cc
index 1894828f7b06470ce9836fd4cfa3dfdd8d99be21..c84cbe9a39e8315d70c5feee12cbb2b9e01eb2cc 100644
--- a/chrome/test/base/test_browser_window.cc
+++ b/chrome/test/base/test_browser_window.cc
@@ -7,9 +7,9 @@
#include "base/memory/ptr_util.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_list_observer.h"
+#include "content/public/browser/keyboard_event_processing_result.h"
#include "ui/gfx/geometry/rect.h"
-
// Helpers --------------------------------------------------------------------
namespace chrome {
@@ -121,10 +121,10 @@ ToolbarActionsBar* TestBrowserWindow::GetToolbarActionsBar() {
return nullptr;
}
-bool TestBrowserWindow::PreHandleKeyboardEvent(
- const content::NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut) {
- return false;
+content::KeyboardEventProcessingResult
+TestBrowserWindow::PreHandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) {
+ return content::KeyboardEventProcessingResult::NOT_HANDLED;
}
bool TestBrowserWindow::IsBookmarkBarVisible() const {
« no previous file with comments | « chrome/test/base/test_browser_window.h ('k') | content/browser/frame_host/interstitial_page_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698