| 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 17 matching lines...) Expand all Loading... |
| 28 #define LocalDOMWindow_h | 28 #define LocalDOMWindow_h |
| 29 | 29 |
| 30 #include "bindings/core/v8/Dictionary.h" | 30 #include "bindings/core/v8/Dictionary.h" |
| 31 #include "bindings/core/v8/SerializedScriptValue.h" | 31 #include "bindings/core/v8/SerializedScriptValue.h" |
| 32 #include "core/events/EventTarget.h" | 32 #include "core/events/EventTarget.h" |
| 33 #include "core/frame/DOMWindowBase64.h" | 33 #include "core/frame/DOMWindowBase64.h" |
| 34 #include "core/frame/FrameDestructionObserver.h" | 34 #include "core/frame/FrameDestructionObserver.h" |
| 35 #include "platform/LifecycleContext.h" | 35 #include "platform/LifecycleContext.h" |
| 36 #include "platform/Supplementable.h" | 36 #include "platform/Supplementable.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "platform/scroll/ScrollableArea.h" | |
| 39 | 38 |
| 40 #include "wtf/Forward.h" | 39 #include "wtf/Forward.h" |
| 41 | 40 |
| 42 namespace blink { | 41 namespace blink { |
| 43 | 42 |
| 44 class CSSRuleList; | 43 class CSSRuleList; |
| 45 class CSSStyleDeclaration; | 44 class CSSStyleDeclaration; |
| 46 class Console; | 45 class Console; |
| 47 class DOMSelection; | 46 class DOMSelection; |
| 48 class DOMURL; | 47 class DOMURL; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool
wholeWord, bool searchInFrames, bool showDialog) const; | 125 bool find(const String&, bool caseSensitive, bool backwards, bool wrap, bool
wholeWord, bool searchInFrames, bool showDialog) const; |
| 127 | 126 |
| 128 int outerHeight() const; | 127 int outerHeight() const; |
| 129 int outerWidth() const; | 128 int outerWidth() const; |
| 130 int innerHeight() const; | 129 int innerHeight() const; |
| 131 int innerWidth() const; | 130 int innerWidth() const; |
| 132 int screenX() const; | 131 int screenX() const; |
| 133 int screenY() const; | 132 int screenY() const; |
| 134 int screenLeft() const { return screenX(); } | 133 int screenLeft() const { return screenX(); } |
| 135 int screenTop() const { return screenY(); } | 134 int screenTop() const { return screenY(); } |
| 136 int scrollX() const; | |
| 137 int scrollY() const; | |
| 138 int pageXOffset() const { return scrollX(); } | |
| 139 int pageYOffset() const { return scrollY(); } | |
| 140 | 135 |
| 141 // FIXME(sky): keeping self for now since js-test.html uses it. | 136 // FIXME(sky): keeping self for now since js-test.html uses it. |
| 142 LocalDOMWindow* window() const; | 137 LocalDOMWindow* window() const; |
| 143 LocalDOMWindow* self() const { return window(); } | 138 LocalDOMWindow* self() const { return window(); } |
| 144 | 139 |
| 145 // DOM Level 2 AbstractView Interface | 140 // DOM Level 2 AbstractView Interface |
| 146 | 141 |
| 147 Document* document() const; | 142 Document* document() const; |
| 148 | 143 |
| 149 // CSSOM View Module | 144 // CSSOM View Module |
| 150 | 145 |
| 151 StyleMedia& styleMedia() const; | 146 StyleMedia& styleMedia() const; |
| 152 | 147 |
| 153 // DOM Level 2 Style Interface | 148 // DOM Level 2 Style Interface |
| 154 | 149 |
| 155 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const
String& pseudoElt) const; | 150 PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element*, const
String& pseudoElt) const; |
| 156 | 151 |
| 157 // WebKit extensions | 152 // WebKit extensions |
| 158 | 153 |
| 159 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin
g& pseudoElt) const; | 154 PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, const Strin
g& pseudoElt) const; |
| 160 double devicePixelRatio() const; | 155 double devicePixelRatio() const; |
| 161 | 156 |
| 162 Console& console() const; | 157 Console& console() const; |
| 163 FrameConsole* frameConsole() const; | 158 FrameConsole* frameConsole() const; |
| 164 | 159 |
| 165 void printErrorMessage(const String&); | 160 void printErrorMessage(const String&); |
| 166 | 161 |
| 167 void scrollBy(int x, int y, ScrollBehavior = ScrollBehaviorAuto) const; | |
| 168 void scrollBy(int x, int y, const Dictionary& scrollOptions, ExceptionState&
) const; | |
| 169 void scrollTo(int x, int y, ScrollBehavior = ScrollBehaviorAuto) const; | |
| 170 void scrollTo(int x, int y, const Dictionary& scrollOptions, ExceptionState&
) const; | |
| 171 void scroll(int x, int y) const { scrollTo(x, y); } | |
| 172 void scroll(int x, int y, const Dictionary& scrollOptions, ExceptionState& e
xceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); } | |
| 173 | |
| 174 void moveBy(float x, float y) const; | 162 void moveBy(float x, float y) const; |
| 175 void moveTo(float x, float y) const; | 163 void moveTo(float x, float y) const; |
| 176 | 164 |
| 177 void resizeBy(float x, float y) const; | 165 void resizeBy(float x, float y) const; |
| 178 void resizeTo(float width, float height) const; | 166 void resizeTo(float width, float height) const; |
| 179 | 167 |
| 180 // WebKit animation extensions | 168 // WebKit animation extensions |
| 181 int requestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAnimationFrameCallba
ck>); | 169 int requestAnimationFrame(PassOwnPtrWillBeRawPtr<RequestAnimationFrameCallba
ck>); |
| 182 void cancelAnimationFrame(int id); | 170 void cancelAnimationFrame(int id); |
| 183 | 171 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 253 |
| 266 mutable RefPtrWillBeMember<DOMWindowCSS> m_css; | 254 mutable RefPtrWillBeMember<DOMWindowCSS> m_css; |
| 267 | 255 |
| 268 RefPtrWillBeMember<DOMWindowEventQueue> m_eventQueue; | 256 RefPtrWillBeMember<DOMWindowEventQueue> m_eventQueue; |
| 269 RefPtr<SerializedScriptValue> m_pendingStateObject; | 257 RefPtr<SerializedScriptValue> m_pendingStateObject; |
| 270 }; | 258 }; |
| 271 | 259 |
| 272 } // namespace blink | 260 } // namespace blink |
| 273 | 261 |
| 274 #endif // LocalDOMWindow_h | 262 #endif // LocalDOMWindow_h |
| OLD | NEW |