| 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/serialization/Transferables.h" | 8 #include "bindings/core/v8/serialization/Transferables.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| 11 #include "core/frame/DOMWindowBase64.h" | 11 #include "core/frame/DOMWindowBase64.h" |
| 12 #include "core/frame/Frame.h" | 12 #include "core/frame/Frame.h" |
| 13 #include "platform/bindings/TraceWrapperMember.h" | 13 #include "platform/bindings/TraceWrapperMember.h" |
| 14 #include "platform/heap/Handle.h" | 14 #include "platform/heap/Handle.h" |
| 15 #include "platform/wtf/Assertions.h" | 15 #include "platform/wtf/Assertions.h" |
| 16 #include "platform/wtf/Forward.h" | 16 #include "platform/wtf/Forward.h" |
| 17 | 17 |
| 18 namespace blink { | 18 namespace blink { |
| 19 | 19 |
| 20 class Document; | 20 class Document; |
| 21 class InputDeviceCapabilitiesConstants; | 21 class InputDeviceCapabilitiesConstants; |
| 22 class LocalDOMWindow; | 22 class LocalDOMWindow; |
| 23 class Location; | 23 class Location; |
| 24 class MessageEvent; | 24 class MessageEvent; |
| 25 class ScriptValue; | |
| 26 class SerializedScriptValue; | 25 class SerializedScriptValue; |
| 27 class WindowProxyManager; | 26 class WindowProxyManager; |
| 28 | 27 |
| 29 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, | 28 class CORE_EXPORT DOMWindow : public EventTargetWithInlineData, |
| 30 public DOMWindowBase64 { | 29 public DOMWindowBase64 { |
| 31 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
| 32 | 31 |
| 33 public: | 32 public: |
| 34 ~DOMWindow() override; | 33 ~DOMWindow() override; |
| 35 | 34 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 DOMWindow* opener() const; | 81 DOMWindow* opener() const; |
| 83 DOMWindow* parent() const; | 82 DOMWindow* parent() const; |
| 84 DOMWindow* top() const; | 83 DOMWindow* top() const; |
| 85 | 84 |
| 86 void focus(ExecutionContext*); | 85 void focus(ExecutionContext*); |
| 87 virtual void blur() = 0; | 86 virtual void blur() = 0; |
| 88 void close(ExecutionContext*); | 87 void close(ExecutionContext*); |
| 89 | 88 |
| 90 // Indexed properties | 89 // Indexed properties |
| 91 DOMWindow* AnonymousIndexedGetter(uint32_t index) const; | 90 DOMWindow* AnonymousIndexedGetter(uint32_t index) const; |
| 92 bool AnonymousIndexedSetter(uint32_t index, const ScriptValue&); | |
| 93 | 91 |
| 94 void postMessage(PassRefPtr<SerializedScriptValue> message, | 92 void postMessage(PassRefPtr<SerializedScriptValue> message, |
| 95 const MessagePortArray&, | 93 const MessagePortArray&, |
| 96 const String& target_origin, | 94 const String& target_origin, |
| 97 LocalDOMWindow* source, | 95 LocalDOMWindow* source, |
| 98 ExceptionState&); | 96 ExceptionState&); |
| 99 | 97 |
| 100 String SanitizedCrossDomainAccessErrorMessage( | 98 String SanitizedCrossDomainAccessErrorMessage( |
| 101 const LocalDOMWindow* calling_window) const; | 99 const LocalDOMWindow* calling_window) const; |
| 102 String CrossDomainAccessErrorMessage( | 100 String CrossDomainAccessErrorMessage( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // |window.closed| determinism; having it return 'true' | 134 // |window.closed| determinism; having it return 'true' |
| 137 // only after the layout widget's deferred window close | 135 // only after the layout widget's deferred window close |
| 138 // operation has been performed, exposes (confusing) | 136 // operation has been performed, exposes (confusing) |
| 139 // implementation details to scripts. | 137 // implementation details to scripts. |
| 140 bool window_is_closing_; | 138 bool window_is_closing_; |
| 141 }; | 139 }; |
| 142 | 140 |
| 143 } // namespace blink | 141 } // namespace blink |
| 144 | 142 |
| 145 #endif // DOMWindow_h | 143 #endif // DOMWindow_h |
| OLD | NEW |