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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h

Issue 2702273004: bindings: Simplifies WindowProxyManager and its relation to Frame. (Closed)
Patch Set: Addressed review comments. Created 3 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: third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
index 9089f013b83894a81d2d280d5737db54716a7745..3a4b02e16740b770a2f2fa9d38a75016690a4a80 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.h
@@ -54,6 +54,9 @@ class WindowProxy : public GarbageCollectedFinalized<WindowProxy> {
v8::Local<v8::Context> contextIfInitialized() const {
return m_scriptState ? m_scriptState->context() : v8::Local<v8::Context>();
}
+ bool isInitialized() const {
+ return m_lifecycle == Lifecycle::ContextInitialized;
+ }
void initializeIfNeeded();
void clearForClose();

Powered by Google App Engine
This is Rietveld 408576698