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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int screenTop() const { return screenY(); } | 94 int screenTop() const { return screenY(); } |
95 virtual double scrollX() const = 0; | 95 virtual double scrollX() const = 0; |
96 virtual double scrollY() const = 0; | 96 virtual double scrollY() const = 0; |
97 double pageXOffset() const { return scrollX(); } | 97 double pageXOffset() const { return scrollX(); } |
98 double pageYOffset() const { return scrollY(); } | 98 double pageYOffset() const { return scrollY(); } |
99 | 99 |
100 virtual DOMVisualViewport* visualViewport() { return nullptr; } | 100 virtual DOMVisualViewport* visualViewport() { return nullptr; } |
101 | 101 |
102 bool closed() const; | 102 bool closed() const; |
103 | 103 |
104 // FIXME: This is not listed as a cross-origin accessible attribute, but in | |
105 // Blink, it's currently marked as DoNotCheckSecurity. | |
106 unsigned length() const; | 104 unsigned length() const; |
107 | 105 |
108 virtual const AtomicString& name() const = 0; | 106 virtual const AtomicString& name() const = 0; |
109 virtual void setName(const AtomicString&) = 0; | 107 virtual void setName(const AtomicString&) = 0; |
110 | 108 |
111 virtual String status() const = 0; | 109 virtual String status() const = 0; |
112 virtual void setStatus(const String&) = 0; | 110 virtual void setStatus(const String&) = 0; |
113 virtual String defaultStatus() const = 0; | 111 virtual String defaultStatus() const = 0; |
114 virtual void setDefaultStatus(const String&) = 0; | 112 virtual void setDefaultStatus(const String&) = 0; |
115 | 113 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 // implementation details to scripts. | 264 // implementation details to scripts. |
267 bool m_windowIsClosing; | 265 bool m_windowIsClosing; |
268 | 266 |
269 private: | 267 private: |
270 mutable Member<Location> m_location; | 268 mutable Member<Location> m_location; |
271 }; | 269 }; |
272 | 270 |
273 } // namespace blink | 271 } // namespace blink |
274 | 272 |
275 #endif // DOMWindow_h | 273 #endif // DOMWindow_h |
OLD | NEW |