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

Unified Diff: content/browser/web_contents/web_contents_impl.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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 16b7519bfcdfafbd6f85e0ba9f7373610c890b61..baa4e19055455d5d6a1a300f0c5ff78cdeb6cae4 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1121,12 +1121,12 @@ bool WebContentsImpl::PreHandleKeyboardEvent(
const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut) {
return delegate_ &&
- delegate_->PreHandleKeyboardEvent(event, is_keyboard_shortcut);
+ delegate_->PreHandleKeyboardEvent(this, event, is_keyboard_shortcut);
}
void WebContentsImpl::HandleKeyboardEvent(const NativeWebKeyboardEvent& event) {
if (delegate_)
- delegate_->HandleKeyboardEvent(event);
+ delegate_->HandleKeyboardEvent(this, event);
}
void WebContentsImpl::HandleMouseDown() {
@@ -2685,7 +2685,7 @@ void WebContentsImpl::DidCancelLoading() {
void WebContentsImpl::DidChangeLoadProgress(double progress) {
if (delegate_)
- delegate_->LoadProgressChanged(progress);
+ delegate_->LoadProgressChanged(this, progress);
}
void WebContentsImpl::DocumentAvailableInMainFrame(
« no previous file with comments | « content/browser/browser_plugin/old/browser_plugin_host.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698