| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 bool closed() const; | 98 bool closed() const; |
| 99 | 99 |
| 100 // FIXME: This is not listed as a cross-origin accessible attribute, but in | 100 // FIXME: This is not listed as a cross-origin accessible attribute, but in |
| 101 // Blink, it's currently marked as DoNotCheckSecurity. | 101 // Blink, it's currently marked as DoNotCheckSecurity. |
| 102 unsigned length() const; | 102 unsigned length() const; |
| 103 | 103 |
| 104 virtual const AtomicString& name() const = 0; | 104 virtual const AtomicString& name() const = 0; |
| 105 virtual void setName(const AtomicString&) = 0; | 105 virtual void setName(const AtomicString&) = 0; |
| 106 | 106 |
| 107 virtual AtomicString requiredCSP() const = 0; |
| 108 virtual void setRequiredCSP(const AtomicString&) = 0; |
| 109 |
| 107 virtual String status() const = 0; | 110 virtual String status() const = 0; |
| 108 virtual void setStatus(const String&) = 0; | 111 virtual void setStatus(const String&) = 0; |
| 109 virtual String defaultStatus() const = 0; | 112 virtual String defaultStatus() const = 0; |
| 110 virtual void setDefaultStatus(const String&) = 0; | 113 virtual void setDefaultStatus(const String&) = 0; |
| 111 | 114 |
| 112 // Self-referential attributes | 115 // Self-referential attributes |
| 113 DOMWindow* self() const; | 116 DOMWindow* self() const; |
| 114 DOMWindow* window() const { return self(); } | 117 DOMWindow* window() const { return self(); } |
| 115 DOMWindow* frames() const { return self(); } | 118 DOMWindow* frames() const { return self(); } |
| 116 | 119 |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // implementation details to scripts. | 236 // implementation details to scripts. |
| 234 bool m_windowIsClosing; | 237 bool m_windowIsClosing; |
| 235 | 238 |
| 236 private: | 239 private: |
| 237 mutable Member<Location> m_location; | 240 mutable Member<Location> m_location; |
| 238 }; | 241 }; |
| 239 | 242 |
| 240 } // namespace blink | 243 } // namespace blink |
| 241 | 244 |
| 242 #endif // DOMWindow_h | 245 #endif // DOMWindow_h |
| OLD | NEW |