Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Side by Side Diff: third_party/WebKit/Source/core/frame/DOMWindow.h

Issue 2439013002: Implement cross-origin attributes using access check interceptors. (Closed)
Patch Set: . Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 104 // FIXME: This is not listed as a cross-origin accessible attribute, but in
105 // Blink, it's currently marked as DoNotCheckSecurity. 105 // Blink, it's currently marked as IsCrossOrigin.
dcheng 2016/11/02 01:46:42 This comment is actually obsolete; I've removed it
106 unsigned length() const; 106 unsigned length() const;
107 107
108 virtual const AtomicString& name() const = 0; 108 virtual const AtomicString& name() const = 0;
109 virtual void setName(const AtomicString&) = 0; 109 virtual void setName(const AtomicString&) = 0;
110 110
111 virtual String status() const = 0; 111 virtual String status() const = 0;
112 virtual void setStatus(const String&) = 0; 112 virtual void setStatus(const String&) = 0;
113 virtual String defaultStatus() const = 0; 113 virtual String defaultStatus() const = 0;
114 virtual void setDefaultStatus(const String&) = 0; 114 virtual void setDefaultStatus(const String&) = 0;
115 115
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 // implementation details to scripts. 266 // implementation details to scripts.
267 bool m_windowIsClosing; 267 bool m_windowIsClosing;
268 268
269 private: 269 private:
270 mutable Member<Location> m_location; 270 mutable Member<Location> m_location;
271 }; 271 };
272 272
273 } // namespace blink 273 } // namespace blink
274 274
275 #endif // DOMWindow_h 275 #endif // DOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698