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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 944763002: Make Page Visibility API work when the browser window is visible or not Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove the VisibilityNotify event handler Created 5 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
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura.cc b/content/browser/renderer_host/render_widget_host_view_aura.cc
index 63c1609fa100e62bb3bdcdbd4d8c79807e5283ec..1e5acc19ac0eaeda043404fc45da2967108d8f0c 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura.cc
@@ -608,7 +608,13 @@ void RenderWidgetHostViewAura::Show() {
}
void RenderWidgetHostViewAura::Hide() {
- window_->Hide();
+ Hide(false);
+}
+
+void RenderWidgetHostViewAura::Hide(bool content_visible) {
+ // We need to show content in a workspace view like Mac OSX Expose.
+ if (!content_visible)
no sievers 2015/03/03 21:12:53 Can you explain why it makes sense to have |window
joone 2015/03/04 05:22:45 I tried to call the Hide method when the browser w
no sievers 2015/03/04 19:21:25 This is the code right here. You mean the 'content
joone 2015/03/04 22:05:04 Yes, because if we calll window->Hide(), we only s
+ window_->Hide();
if (host_ && !host_->is_hidden()) {
host_->WasHidden();

Powered by Google App Engine
This is Rietveld 408576698