| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "bindings/core/v8/V8PagePopupControllerBinding.h" | 5 #include "bindings/core/v8/V8PagePopupControllerBinding.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/V8Binding.h" | 7 #include "bindings/core/v8/V8Binding.h" |
| 8 #include "bindings/core/v8/V8Window.h" | 8 #include "bindings/core/v8/V8Window.h" |
| 9 #include "core/dom/ContextFeatures.h" | 9 #include "core/dom/ContextFeatures.h" |
| 10 #include "core/dom/Document.h" | 10 #include "core/dom/Document.h" |
| 11 #include "core/dom/ExecutionContext.h" | 11 #include "core/dom/ExecutionContext.h" |
| 12 #include "core/frame/LocalDOMWindow.h" |
| 12 #include "core/page/PagePopupController.h" | 13 #include "core/page/PagePopupController.h" |
| 13 #include "core/page/PagePopupSupplement.h" | 14 #include "core/page/PagePopupSupplement.h" |
| 14 #include "platform/TraceEvent.h" | 15 #include "platform/TraceEvent.h" |
| 15 | 16 |
| 16 namespace blink { | 17 namespace blink { |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| 19 | 20 |
| 20 void pagePopupControllerAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 21 void pagePopupControllerAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
| 21 { | 22 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 39 && ContextFeatures::pagePopupEnabled(toDocument(executionContext)))) | 40 && ContextFeatures::pagePopupEnabled(toDocument(executionContext)))) |
| 40 return; | 41 return; |
| 41 | 42 |
| 42 windowWrapper->SetAccessor( | 43 windowWrapper->SetAccessor( |
| 43 context, | 44 context, |
| 44 v8AtomicString(context->GetIsolate(), "pagePopupController"), | 45 v8AtomicString(context->GetIsolate(), "pagePopupController"), |
| 45 pagePopupControllerAttributeGetterCallback); | 46 pagePopupControllerAttributeGetterCallback); |
| 46 } | 47 } |
| 47 | 48 |
| 48 } // namespace blink | 49 } // namespace blink |
| OLD | NEW |