Index: chrome/browser/tab_contents/tab_contents_view.cc |
=================================================================== |
--- chrome/browser/tab_contents/tab_contents_view.cc (revision 34219) |
+++ chrome/browser/tab_contents/tab_contents_view.cc (working copy) |
@@ -58,12 +58,18 @@ |
ShowCreatedWidgetInternal(widget_host_view, initial_pos); |
} |
-bool TabContentsView::IsReservedAccelerator( |
- const NativeWebKeyboardEvent& event) { |
- return tab_contents()->delegate() && |
- tab_contents()->delegate()->IsReservedAccelerator(event); |
+bool TabContentsView::PreHandleKeyboardEvent( |
+ const NativeWebKeyboardEvent& event, bool* is_keyboard_shortcut) { |
+ return tab_contents_->delegate() && |
+ tab_contents_->delegate()->PreHandleKeyboardEvent( |
+ event, is_keyboard_shortcut); |
} |
+void TabContentsView::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) { |
+ if (tab_contents_->delegate()) |
+ tab_contents_->delegate()->HandleKeyboardEvent(event); |
+} |
+ |
RenderWidgetHostView* TabContentsView::CreateNewWidgetInternal( |
int route_id, bool activatable) { |
return delegate_view_helper_.CreateNewWidget(route_id, activatable, |