OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "config.h" | 5 #include "config.h" |
6 #include "bindings/core/v8/ScriptPromisePropertyBase.h" | 6 #include "bindings/core/v8/ScriptPromisePropertyBase.h" |
7 | 7 |
8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
9 #include "bindings/core/v8/V8HiddenValue.h" | 9 #include "bindings/core/v8/V8HiddenValue.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
11 | 11 |
12 namespace WebCore { | 12 namespace blink { |
13 | 13 |
14 ScriptPromisePropertyBase::ScriptPromisePropertyBase(ExecutionContext* execution
Context, Name name) | 14 ScriptPromisePropertyBase::ScriptPromisePropertyBase(ExecutionContext* execution
Context, Name name) |
15 : ContextLifecycleObserver(executionContext) | 15 : ContextLifecycleObserver(executionContext) |
16 , m_isolate(toIsolate(executionContext)) | 16 , m_isolate(toIsolate(executionContext)) |
17 , m_name(name) | 17 , m_name(name) |
18 , m_state(Pending) | 18 , m_state(Pending) |
19 { | 19 { |
20 } | 20 } |
21 | 21 |
22 ScriptPromisePropertyBase::~ScriptPromisePropertyBase() | 22 ScriptPromisePropertyBase::~ScriptPromisePropertyBase() |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 return V8HiddenValue::Name ## Resolver(m_isolate); | 143 return V8HiddenValue::Name ## Resolver(m_isolate); |
144 | 144 |
145 SCRIPT_PROMISE_PROPERTIES(P) | 145 SCRIPT_PROMISE_PROPERTIES(P) |
146 | 146 |
147 #undef P | 147 #undef P |
148 } | 148 } |
149 ASSERT_NOT_REACHED(); | 149 ASSERT_NOT_REACHED(); |
150 return v8::Handle<v8::String>(); | 150 return v8::Handle<v8::String>(); |
151 } | 151 } |
152 | 152 |
153 } // namespace WebCore | 153 } // namespace blink |
OLD | NEW |