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 #ifndef DOMWindow_h | 5 #ifndef DOMWindow_h |
6 #define DOMWindow_h | 6 #define DOMWindow_h |
7 | 7 |
8 #include "bindings/core/v8/Transferables.h" | 8 #include "bindings/core/v8/Transferables.h" |
9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class StyleMedia; | 43 class StyleMedia; |
44 | 44 |
45 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { | 45 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, public DOMWindow
Base64 { |
46 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
47 public: | 47 public: |
48 ~DOMWindow() override; | 48 ~DOMWindow() override; |
49 | 49 |
50 // GarbageCollectedFinalized overrides: | 50 // GarbageCollectedFinalized overrides: |
51 DECLARE_VIRTUAL_TRACE(); | 51 DECLARE_VIRTUAL_TRACE(); |
52 | 52 |
53 virtual bool isLocalDOMWindow() const { return false; } | 53 virtual bool isLocalDOMWindow() const = 0; |
54 virtual bool isRemoteDOMWindow() const { return false; } | 54 virtual bool isRemoteDOMWindow() const = 0; |
55 | 55 |
56 virtual Frame* frame() const = 0; | 56 virtual Frame* frame() const = 0; |
57 | 57 |
58 // ScriptWrappable overrides: | 58 // ScriptWrappable overrides: |
59 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; | 59 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) final; |
60 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; | 60 v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const WrapperTypeIn
fo*, v8::Local<v8::Object> wrapper) final; |
61 | 61 |
62 // EventTarget overrides: | 62 // EventTarget overrides: |
63 const AtomicString& interfaceName() const override; | 63 const AtomicString& interfaceName() const override; |
64 const DOMWindow* toDOMWindow() const override; | 64 const DOMWindow* toDOMWindow() const override; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // implementation details to scripts. | 227 // implementation details to scripts. |
228 bool m_windowIsClosing; | 228 bool m_windowIsClosing; |
229 | 229 |
230 private: | 230 private: |
231 mutable Member<Location> m_location; | 231 mutable Member<Location> m_location; |
232 }; | 232 }; |
233 | 233 |
234 } // namespace blink | 234 } // namespace blink |
235 | 235 |
236 #endif // DOMWindow_h | 236 #endif // DOMWindow_h |
OLD | NEW |