OLD | NEW |
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 "core/events/EventTarget.h" | 8 #include "core/events/EventTarget.h" |
9 #include "core/frame/DOMWindowBase64.h" | 9 #include "core/frame/DOMWindowBase64.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 virtual String prompt(const String& message, const String& defaultValue) = 0
; | 141 virtual String prompt(const String& message, const String& defaultValue) = 0
; |
142 | 142 |
143 virtual bool find(const String&, bool caseSensitive, bool backwards, bool wr
ap, bool wholeWord, bool searchInFrames, bool showDialog) const = 0; | 143 virtual bool find(const String&, bool caseSensitive, bool backwards, bool wr
ap, bool wholeWord, bool searchInFrames, bool showDialog) const = 0; |
144 | 144 |
145 virtual void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAut
o) const = 0; | 145 virtual void scrollBy(double x, double y, ScrollBehavior = ScrollBehaviorAut
o) const = 0; |
146 virtual void scrollBy(const ScrollToOptions&) const = 0; | 146 virtual void scrollBy(const ScrollToOptions&) const = 0; |
147 virtual void scrollTo(double x, double y) const = 0; | 147 virtual void scrollTo(double x, double y) const = 0; |
148 virtual void scrollTo(const ScrollToOptions&) const = 0; | 148 virtual void scrollTo(const ScrollToOptions&) const = 0; |
149 void scroll(double x, double y) const { scrollTo(x, y); } | 149 void scroll(double x, double y) const { scrollTo(x, y); } |
150 void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollT
oOptions); } | 150 void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollT
oOptions); } |
151 virtual void moveBy(int x, int y) const = 0; | 151 void moveBy() const { moveBy(0, 0, false, false); } |
| 152 void moveBy(int x) const { moveBy(x, 0, true, false); } |
| 153 virtual void moveBy(int x, int y, bool hasX = true, bool hasY = true) const
= 0; |
152 void moveTo() const { moveTo(0, 0, false, false); } | 154 void moveTo() const { moveTo(0, 0, false, false); } |
153 void moveTo(int x) const { moveTo(x, 0, true, false); } | 155 void moveTo(int x) const { moveTo(x, 0, true, false); } |
154 virtual void moveTo(int x, int y, bool hasX = true, bool hasY = true) const
= 0; | 156 virtual void moveTo(int x, int y, bool hasX = true, bool hasY = true) const
= 0; |
155 | 157 |
156 virtual void resizeBy(int x, int y) const = 0; | 158 void resizeBy() const { resizeBy(0, 0, false, false); } |
| 159 void resizeBy(int x) const { resizeBy(x, 0, true, false); } |
| 160 virtual void resizeBy(int x, int y, bool hasX = true, bool hasY = true) cons
t = 0; |
157 void resizeTo() const { resizeTo(0, 0, false, false); } | 161 void resizeTo() const { resizeTo(0, 0, false, false); } |
158 void resizeTo(int x) const { resizeTo(x, 0, true, false); } | 162 void resizeTo(int x) const { resizeTo(x, 0, true, false); } |
159 virtual void resizeTo(int width, int height, bool hasWidth = true, bool hasH
eight = true) const = 0; | 163 virtual void resizeTo(int width, int height, bool hasWidth = true, bool hasH
eight = true) const = 0; |
160 | 164 |
161 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0
; | 165 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0
; |
162 | 166 |
163 // DOM Level 2 Style Interface | 167 // DOM Level 2 Style Interface |
164 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; | 168 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; |
165 | 169 |
166 // WebKit extensions | 170 // WebKit extensions |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 213 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
210 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 214 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 215 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 216 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 217 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
214 }; | 218 }; |
215 | 219 |
216 } // namespace blink | 220 } // namespace blink |
217 | 221 |
218 #endif // DOMWindow_h | 222 #endif // DOMWindow_h |
OLD | NEW |