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

Unified Diff: chrome/browser/external_tab_container.cc

Issue 400012: Refactor the keyboard events handling code related to RenderViewHostDelegate:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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/external_tab_container.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/external_tab_container.cc
===================================================================
--- chrome/browser/external_tab_container.cc (revision 34219)
+++ chrome/browser/external_tab_container.cc (working copy)
@@ -459,12 +459,15 @@
return true;
}
-bool ExternalTabContainer::HandleKeyboardEvent(
+bool ExternalTabContainer::PreHandleKeyboardEvent(
+ const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) {
+ return false;
+}
+
+void ExternalTabContainer::HandleKeyboardEvent(
const NativeWebKeyboardEvent& event) {
- return ProcessUnhandledKeyStroke(event.os_event.hwnd,
- event.os_event.message,
- event.os_event.wParam,
- event.os_event.lParam);
+ ProcessUnhandledKeyStroke(event.os_event.hwnd, event.os_event.message,
+ event.os_event.wParam, event.os_event.lParam);
}
void ExternalTabContainer::ShowHtmlDialog(HtmlDialogUIDelegate* delegate,
@@ -716,4 +719,3 @@
DCHECK(request_context_.get() != NULL);
tab_contents_->set_request_context(request_context_.get());
}
-
« no previous file with comments | « chrome/browser/external_tab_container.h ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698