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

Unified Diff: chrome/browser/tab_contents/tab_contents_view.cc

Issue 224023: Don't send tab switching/killing/creating keyboard accelerators to pages. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: call Browser:IsReservedAccelerator from tab_contents_view.cc instead of each platform file Created 11 years, 3 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
Index: chrome/browser/tab_contents/tab_contents_view.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents_view.cc (revision 27783)
+++ chrome/browser/tab_contents/tab_contents_view.cc (working copy)
@@ -56,6 +56,12 @@
ShowCreatedWidgetInternal(widget_host_view, initial_pos);
}
+bool TabContentsView::IsReservedAccelerator(
+ const NativeWebKeyboardEvent& event) {
+ return tab_contents()->delegate() &&
+ tab_contents()->delegate()->IsReservedAccelerator(event);
+}
+
RenderWidgetHostView* TabContentsView::CreateNewWidgetInternal(
int route_id, bool activatable) {
return delegate_view_helper_.CreateNewWidget(route_id, activatable,

Powered by Google App Engine
This is Rietveld 408576698