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

Unified Diff: chrome/browser/ui/views/external_tab_container_win.cc

Issue 10837112: Add WebContents* to some more WebContentsDelegate methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 4 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/ui/views/external_tab_container_win.cc
diff --git a/chrome/browser/ui/views/external_tab_container_win.cc b/chrome/browser/ui/views/external_tab_container_win.cc
index 335066ec5db53e879451968661d7a570207b2743..9a5502cbff9f783c8a7da00f619322ec365480f8 100644
--- a/chrome/browser/ui/views/external_tab_container_win.cc
+++ b/chrome/browser/ui/views/external_tab_container_win.cc
@@ -593,7 +593,8 @@ gfx::NativeWindow ExternalTabContainerWin::GetFrameNativeWindow() {
return hwnd();
}
-bool ExternalTabContainerWin::TakeFocus(bool reverse) {
+bool ExternalTabContainerWin::TakeFocus(content::WebContents* source,
+ bool reverse) {
if (automation_) {
automation_->Send(new AutomationMsg_TabbedOut(tab_handle_,
base::win::IsShiftPressed()));
@@ -725,12 +726,14 @@ bool ExternalTabContainerWin::ExecuteContextMenuCommand(int command) {
}
bool ExternalTabContainerWin::PreHandleKeyboardEvent(
+ content::WebContents* source,
const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
return false;
}
void ExternalTabContainerWin::HandleKeyboardEvent(
+ content::WebContents* source,
const NativeWebKeyboardEvent& event) {
ProcessUnhandledKeyStroke(event.os_event.hwnd, event.os_event.message,
event.os_event.wParam, event.os_event.lParam);
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.h ('k') | chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698