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

Unified Diff: chrome/browser/ui/browser.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
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/cocoa/web_dialog_window_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 1938d631ad7f0ff210e665529c46f9c82f264d90..79859b4f4f9582a68c1fbb3586e4cd1ec612c9b2 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1172,7 +1172,8 @@ void Browser::TabStripEmpty() {
FROM_HERE, base::Bind(&Browser::CloseFrame, weak_factory_.GetWeakPtr()));
}
-bool Browser::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
+bool Browser::PreHandleKeyboardEvent(content::WebContents* source,
+ const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
// Escape exits tabbed fullscreen mode.
// TODO(koz): Write a test for this http://crbug.com/100441.
@@ -1183,7 +1184,8 @@ bool Browser::PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
return window()->PreHandleKeyboardEvent(event, is_keyboard_shortcut);
}
-void Browser::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
+void Browser::HandleKeyboardEvent(content::WebContents* source,
+ const NativeWebKeyboardEvent& event) {
window()->HandleKeyboardEvent(event);
}
@@ -1358,7 +1360,8 @@ void Browser::WebContentsFocused(WebContents* contents) {
window_->WebContentsFocused(contents);
}
-bool Browser::TakeFocus(bool reverse) {
+bool Browser::TakeFocus(content::WebContents* source,
+ bool reverse) {
content::NotificationService::current()->Notify(
chrome::NOTIFICATION_FOCUS_RETURNED_TO_BROWSER,
content::Source<Browser>(this),
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/browser/ui/cocoa/web_dialog_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698