OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 ConditionalFeatures_h | 5 #ifndef ConditionalFeatures_h |
6 #define ConditionalFeatures_h | 6 #define ConditionalFeatures_h |
7 | 7 |
8 #include "bindings/core/v8/DOMWrapperWorld.h" | 8 #include "bindings/core/v8/DOMWrapperWorld.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include <v8.h> | 10 #include <v8.h> |
(...skipping 16 matching lines...) Expand all Loading... |
27 v8::Local<v8::Object>, | 27 v8::Local<v8::Object>, |
28 v8::Local<v8::Function>); | 28 v8::Local<v8::Function>); |
29 | 29 |
30 // Sets the function to be called by |installConditionalFeatures|. The function | 30 // Sets the function to be called by |installConditionalFeatures|. The function |
31 // is initially set to the private |installConditionalFeaturesCore| function, | 31 // is initially set to the private |installConditionalFeaturesCore| function, |
32 // but can be overridden by this function. A pointer to the previously set | 32 // but can be overridden by this function. A pointer to the previously set |
33 // function is returned, so that functions can be chained. | 33 // function is returned, so that functions can be chained. |
34 CORE_EXPORT InstallConditionalFeaturesFunction | 34 CORE_EXPORT InstallConditionalFeaturesFunction |
35 setInstallConditionalFeaturesFunction(InstallConditionalFeaturesFunction); | 35 setInstallConditionalFeaturesFunction(InstallConditionalFeaturesFunction); |
36 | 36 |
| 37 // Installs all of the conditionally enabled V8 bindings on the Window object. |
| 38 // This is called separately from other objects so that attributes and |
| 39 // interfaces which need to be visible on the global object are installed even |
| 40 // when the V8 context is reused (i.e., after navigation) |
| 41 CORE_EXPORT void installPendingConditionalFeaturesOnWindow(const ScriptState*); |
| 42 |
37 } // namespace blink | 43 } // namespace blink |
38 | 44 |
39 #endif // ConditionalFeatures_h | 45 #endif // ConditionalFeatures_h |
OLD | NEW |