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

Unified Diff: Source/core/frame/Screen.h

Issue 243173004: Make window.screen property non replaceable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix clang error Created 6 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/Screen.h
diff --git a/Source/core/frame/Screen.h b/Source/core/frame/Screen.h
index d03653e14bfafa21a69033a3e36b64cde265522e..ad2ed2bab4237415c1bf7f58a644eadc3a8432cc 100644
--- a/Source/core/frame/Screen.h
+++ b/Source/core/frame/Screen.h
@@ -40,6 +40,7 @@
namespace WebCore {
+ class Dictionary;
class LocalFrame;
class Screen FINAL : public RefCountedWillBeRefCountedGarbageCollected<Screen>, public ScriptWrappable, public EventTargetWithInlineData, public DOMWindowProperty, public WillBeHeapSupplementable<Screen> {
@@ -66,6 +67,10 @@ namespace WebCore {
void trace(Visitor*);
+ // For layout tests.
+ static void setOverrideScreenData(const Dictionary&);
+ static void clearOverrideScreenData();
+
private:
explicit Screen(LocalFrame*);
};

Powered by Google App Engine
This is Rietveld 408576698