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 #ifndef V8PagePopupControllerBinding_h | 5 #ifndef V8PagePopupControllerBinding_h |
6 #define V8PagePopupControllerBinding_h | 6 #define V8PagePopupControllerBinding_h |
7 | 7 |
8 #include "bindings/core/v8/WrapperTypeInfo.h" | 8 #include "bindings/core/v8/WrapperTypeInfo.h" |
| 9 #include "wtf/Allocator.h" |
9 #include <v8.h> | 10 #include <v8.h> |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 // FIXME: This class was introduced in order to just support | 14 // FIXME: This class was introduced in order to just support |
14 // window.pagePopupController which is used by internal implementation of form | 15 // window.pagePopupController which is used by internal implementation of form |
15 // popups. Form popups should be implemented in another way, and this class | 16 // popups. Form popups should be implemented in another way, and this class |
16 // should be removed. | 17 // should be removed. |
17 class V8PagePopupControllerBinding { | 18 class V8PagePopupControllerBinding { |
| 19 STATIC_ONLY(V8PagePopupControllerBinding); |
18 public: | 20 public: |
19 // Installs 'pagePopupController' attribute into 'window' object. | 21 // Installs 'pagePopupController' attribute into 'window' object. |
20 static void installPagePopupController(v8::Local<v8::Context>, v8::Local<v8:
:Object> windowWrapper); | 22 static void installPagePopupController(v8::Local<v8::Context>, v8::Local<v8:
:Object> windowWrapper); |
21 }; | 23 }; |
22 | 24 |
23 } // namespace blink | 25 } // namespace blink |
24 | 26 |
25 #endif // V8PagePopupControllerBinding_h | 27 #endif // V8PagePopupControllerBinding_h |
OLD | NEW |