diff options
Diffstat (limited to 'chromium/content/browser/web_contents/web_contents_impl.h')
-rw-r--r-- | chromium/content/browser/web_contents/web_contents_impl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/content/browser/web_contents/web_contents_impl.h b/chromium/content/browser/web_contents/web_contents_impl.h index b5768e75188..a22ae338156 100644 --- a/chromium/content/browser/web_contents/web_contents_impl.h +++ b/chromium/content/browser/web_contents/web_contents_impl.h @@ -906,6 +906,11 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents, // |IsFullscreen| must return |true| when this method is called. bool HasActiveEffectivelyFullscreenVideo() const; + // The WebContents is trying to take some action that would cause user + // confusion if taken while in fullscreen. If this WebContents or any outer + // WebContents is in fullscreen, drop it. + void ForSecurityDropFullscreen(); + // When inner or outer WebContents are present, become the focused // WebContentsImpl. This will activate this content's main frame RenderWidget // and indirectly all its subframe widgets. GetFocusedRenderWidgetHost will @@ -960,6 +965,8 @@ class CONTENT_EXPORT WebContentsImpl : public WebContents, FRIEND_TEST_ALL_PREFIXES(WebContentsImplBrowserTest, DialogsFromJavaScriptEndFullscreen); FRIEND_TEST_ALL_PREFIXES(WebContentsImplBrowserTest, + DialogsFromJavaScriptEndFullscreenEvenInInnerWC); + FRIEND_TEST_ALL_PREFIXES(WebContentsImplBrowserTest, PopupsFromJavaScriptEndFullscreen); FRIEND_TEST_ALL_PREFIXES(WebContentsImplBrowserTest, FocusFromJavaScriptEndsFullscreen); |