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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // implementation details to scripts. | 268 // implementation details to scripts. |
271 bool m_windowIsClosing; | 269 bool m_windowIsClosing; |
272 | 270 |
273 private: | 271 private: |
274 mutable Member<Location> m_location; | 272 mutable Member<Location> m_location; |
275 }; | 273 }; |
276 | 274 |
277 } // namespace blink | 275 } // namespace blink |
278 | 276 |
279 #endif // DOMWindow_h | 277 #endif // DOMWindow_h |
OLD | NEW |