| Index: Source/web/WebScopedWindowFocusAllowedIndicator.cpp
|
| diff --git a/Source/web/WebScopedWindowFocusAllowedIndicator.cpp b/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
|
| index 5b2e83aad5962b385e98c132d2bd4b8239c4ac4f..26239b6f59c0d2c221a237fd00ac198fae8a9cd8 100644
|
| --- a/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
|
| +++ b/Source/web/WebScopedWindowFocusAllowedIndicator.cpp
|
| @@ -31,10 +31,20 @@
|
| #include "config.h"
|
| #include "public/web/WebScopedWindowFocusAllowedIndicator.h"
|
|
|
| +#include "core/dom/Document.h"
|
| +#include "core/dom/ScopedWindowFocusAllowedIndicator.h"
|
| #include "core/page/WindowFocusAllowedIndicator.h"
|
| +#include "public/web/WebDocument.h"
|
|
|
| namespace blink {
|
|
|
| +void WebScopedWindowFocusAllowedIndicator::initialize(WebDocument* webDocument)
|
| +{
|
| + Document* document = webDocument->unwrap<Document>();
|
| + ASSERT(document);
|
| + m_private.reset(new ScopedWindowFocusAllowedIndicator(document));
|
| +}
|
| +
|
| void WebScopedWindowFocusAllowedIndicator::initialize()
|
| {
|
| m_indicator.reset(new WindowFocusAllowedIndicator());
|
| @@ -43,6 +53,7 @@ void WebScopedWindowFocusAllowedIndicator::initialize()
|
| void WebScopedWindowFocusAllowedIndicator::reset()
|
| {
|
| m_indicator.reset(0);
|
| + m_private.reset(0);
|
| }
|
|
|
| } // namespace blink
|
|
|