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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10407122: Get rid of the last RenderViewHostDelegate usage in chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.cc
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 138434)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -1306,6 +1306,10 @@
return new_tab_start_time_;
}
+void WebContentsImpl::Close() {
+ Close(GetRenderViewHost());
+}
+
void WebContentsImpl::OnCloseStarted() {
if (close_start_time_.is_null())
close_start_time_ = base::TimeTicks::Now();
@@ -1330,6 +1334,10 @@
delegate_->DragEnded();
}
+void WebContentsImpl::UserGestureDone() {
+ OnUserGesture();
+}
+
void WebContentsImpl::SetClosedByUserGesture(bool value) {
closed_by_user_gesture_ = value;
}
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698