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

Unified Diff: Source/web/WebScopedWindowFocusAllowedIndicator.cpp

Issue 808563003: Revert of Remove WindowFocusAllowedIndicator and associated code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@window_focus
Patch Set: Created 6 years 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: Source/web/WebScopedWindowFocusAllowedIndicator.cpp
diff --git a/Source/web/WebScopedWindowFocusAllowedIndicator.cpp b/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
index fce66f2ee6b8370be17b33379d3b9db80924b3d2..26239b6f59c0d2c221a237fd00ac198fae8a9cd8 100644
--- a/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
+++ b/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
@@ -33,6 +33,7 @@
#include "core/dom/Document.h"
#include "core/dom/ScopedWindowFocusAllowedIndicator.h"
+#include "core/page/WindowFocusAllowedIndicator.h"
#include "public/web/WebDocument.h"
namespace blink {
@@ -44,8 +45,14 @@
m_private.reset(new ScopedWindowFocusAllowedIndicator(document));
}
+void WebScopedWindowFocusAllowedIndicator::initialize()
+{
+ m_indicator.reset(new WindowFocusAllowedIndicator());
+}
+
void WebScopedWindowFocusAllowedIndicator::reset()
{
+ m_indicator.reset(0);
m_private.reset(0);
}
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerClient.cpp ('k') | Source/web/tests/WebScopedWindowFocusAllowedIndicatorTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698