| OLD | NEW |
| 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 16 matching lines...) Expand all Loading... |
| 27 #ifndef DOMWindow_h | 27 #ifndef DOMWindow_h |
| 28 #define DOMWindow_h | 28 #define DOMWindow_h |
| 29 | 29 |
| 30 #include "bindings/core/v8/Dictionary.h" | 30 #include "bindings/core/v8/Dictionary.h" |
| 31 #include "core/events/EventTarget.h" | 31 #include "core/events/EventTarget.h" |
| 32 #include "core/frame/DOMWindowBase64.h" | 32 #include "core/frame/DOMWindowBase64.h" |
| 33 #include "core/frame/FrameDestructionObserver.h" | 33 #include "core/frame/FrameDestructionObserver.h" |
| 34 #include "platform/LifecycleContext.h" | 34 #include "platform/LifecycleContext.h" |
| 35 #include "platform/Supplementable.h" | 35 #include "platform/Supplementable.h" |
| 36 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| 37 #include "platform/scroll/ScrollableArea.h" |
| 37 | 38 |
| 38 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
| 39 | 40 |
| 40 namespace WebCore { | 41 namespace WebCore { |
| 41 class ApplicationCache; | 42 class ApplicationCache; |
| 42 class BarProp; | 43 class BarProp; |
| 43 class CSSRuleList; | 44 class CSSRuleList; |
| 44 class CSSStyleDeclaration; | 45 class CSSStyleDeclaration; |
| 45 class Console; | 46 class Console; |
| 46 class DOMPoint; | 47 class DOMPoint; |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 FrameConsole* frameConsole() const; | 226 FrameConsole* frameConsole() const; |
| 226 | 227 |
| 227 void printErrorMessage(const String&); | 228 void printErrorMessage(const String&); |
| 228 String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow); | 229 String crossDomainAccessErrorMessage(LocalDOMWindow* callingWindow); |
| 229 String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWin
dow); | 230 String sanitizedCrossDomainAccessErrorMessage(LocalDOMWindow* callingWin
dow); |
| 230 | 231 |
| 231 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag
ePortArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&
); | 232 void postMessage(PassRefPtr<SerializedScriptValue> message, const Messag
ePortArray*, const String& targetOrigin, LocalDOMWindow* source, ExceptionState&
); |
| 232 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>); | 233 void postMessageTimerFired(PassOwnPtr<PostMessageTimer>); |
| 233 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO
rigin, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>); | 234 void dispatchMessageEventWithOriginCheck(SecurityOrigin* intendedTargetO
rigin, PassRefPtrWillBeRawPtr<Event>, PassRefPtrWillBeRawPtr<ScriptCallStack>); |
| 234 | 235 |
| 235 void scrollBy(int x, int y) const; | 236 void scrollBy(int x, int y, ScrollBehavior = ScrollBehaviorAuto) const; |
| 236 void scrollBy(int x, int y, const Dictionary& scrollOptions, ExceptionSt
ate&) const; | 237 void scrollBy(int x, int y, const Dictionary& scrollOptions, ExceptionSt
ate&) const; |
| 237 void scrollTo(int x, int y) const; | 238 void scrollTo(int x, int y, ScrollBehavior = ScrollBehaviorAuto) const; |
| 238 void scrollTo(int x, int y, const Dictionary& scrollOptions, ExceptionSt
ate&) const; | 239 void scrollTo(int x, int y, const Dictionary& scrollOptions, ExceptionSt
ate&) const; |
| 239 void scroll(int x, int y) const { scrollTo(x, y); } | 240 void scroll(int x, int y) const { scrollTo(x, y); } |
| 240 void scroll(int x, int y, const Dictionary& scrollOptions, ExceptionStat
e& exceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); } | 241 void scroll(int x, int y, const Dictionary& scrollOptions, ExceptionStat
e& exceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); } |
| 241 | 242 |
| 242 void moveBy(float x, float y) const; | 243 void moveBy(float x, float y) const; |
| 243 void moveTo(float x, float y) const; | 244 void moveTo(float x, float y) const; |
| 244 | 245 |
| 245 void resizeBy(float x, float y) const; | 246 void resizeBy(float x, float y) const; |
| 246 void resizeTo(float width, float height) const; | 247 void resizeTo(float width, float height) const; |
| 247 | 248 |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 } | 403 } |
| 403 | 404 |
| 404 inline String LocalDOMWindow::defaultStatus() const | 405 inline String LocalDOMWindow::defaultStatus() const |
| 405 { | 406 { |
| 406 return m_defaultStatus; | 407 return m_defaultStatus; |
| 407 } | 408 } |
| 408 | 409 |
| 409 } // namespace WebCore | 410 } // namespace WebCore |
| 410 | 411 |
| 411 #endif // DOMWindow_h | 412 #endif // DOMWindow_h |
| OLD | NEW |