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

Unified Diff: content/public/browser/web_contents.h

Issue 1743143002: Remove WebContents::Was{Hidden,Shown}() from the content public interface Base URL: https://chromium.googlesource.com/chromium/src.git@20160225-WebContents-DicardCursorRects
Patch Set: Fix androido Created 4 years, 10 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.cc ('k') | content/public/test/web_contents_tester.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 4f8a3f26c139feb35a84f65b01cf1d0530e1133f..61838e4a778fdb9c8f55a6f4154e914387019d42 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -382,9 +382,9 @@ class WebContents : public PageNavigator,
virtual base::TimeTicks GetLastActiveTime() const = 0;
virtual void SetLastActiveTime(base::TimeTicks last_active_time) = 0;
- // Invoked when the WebContents becomes shown/hidden.
- virtual void WasShown() = 0;
- virtual void WasHidden() = 0;
+ // Hides the RenderWidgetHostView if it is not being used for capture, and
+ // emits WebContentsObserver::WasHidden().
+ virtual void MarkBackgrounded() = 0;
jam 2016/02/29 17:36:36 what's the other analogous method? i.e. it seems
tapted 2016/02/29 22:42:32 Ah, that's the thing :). `MarkBackgrounded` actual
// Returns true if the before unload and unload listeners need to be
// fired. The value of this changes over time. For example, if true and the
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/public/test/web_contents_tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698