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

Side by Side Diff: Source/core/page/DOMWindow.h

Issue 22985006: Throw an exception when denying access to 'Frame's 'location' setter. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 double devicePixelRatio() const; 215 double devicePixelRatio() const;
216 216
217 PassRefPtr<DOMPoint> webkitConvertPointFromPageToNode(Node*, const DOMPo int*) const; 217 PassRefPtr<DOMPoint> webkitConvertPointFromPageToNode(Node*, const DOMPo int*) const;
218 PassRefPtr<DOMPoint> webkitConvertPointFromNodeToPage(Node*, const DOMPo int*) const; 218 PassRefPtr<DOMPoint> webkitConvertPointFromNodeToPage(Node*, const DOMPo int*) const;
219 219
220 Console* console() const; 220 Console* console() const;
221 PageConsole* pageConsole() const; 221 PageConsole* pageConsole() const;
222 222
223 void printErrorMessage(const String&); 223 void printErrorMessage(const String&);
224 String crossDomainAccessErrorMessage(DOMWindow* activeWindow); 224 String crossDomainAccessErrorMessage(DOMWindow* activeWindow);
225 String sanitizedCrossDomainAccessErrorMessage(DOMWindow* activeWindow);
225 226
226 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag ePortArray*, const String& targetOrigin, DOMWindow* source, ExceptionState&); 227 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag ePortArray*, const String& targetOrigin, DOMWindow* source, ExceptionState&);
227 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>); 228 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>);
228 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO rigin, PassRefPtr<Event>, PassRefPtr<ScriptCallStack>); 229 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO rigin, PassRefPtr<Event>, PassRefPtr<ScriptCallStack>);
229 230
230 void scrollBy(int x, int y) const; 231 void scrollBy(int x, int y) const;
231 void scrollTo(int x, int y) const; 232 void scrollTo(int x, int y) const;
232 void scroll(int x, int y) const { scrollTo(x, y); } 233 void scroll(int x, int y) const { scrollTo(x, y); }
233 234
234 void moveBy(float x, float y) const; 235 void moveBy(float x, float y) const;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 435 }
435 436
436 inline String DOMWindow::defaultStatus() const 437 inline String DOMWindow::defaultStatus() const
437 { 438 {
438 return m_defaultStatus; 439 return m_defaultStatus;
439 } 440 }
440 441
441 } // namespace WebCore 442 } // namespace WebCore
442 443
443 #endif // DOMWindow_h 444 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptExecutionContext.cpp ('k') | Source/core/page/DOMWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698