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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 virtual void moveBy(int x, int y) const = 0; |
152 void moveTo() const { moveTo(0, 0, false, false); } | 152 virtual void moveTo(int x, int y) const = 0; |
153 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; | |
155 | 153 |
156 virtual void resizeBy(int x, int y) const = 0; | 154 virtual void resizeBy(int x, int y) const = 0; |
157 void resizeTo() const { resizeTo(0, 0, false, false); } | 155 virtual void resizeTo(int width, int height) const = 0; |
158 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; | |
160 | 156 |
161 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0
; | 157 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0
; |
162 | 158 |
163 // DOM Level 2 Style Interface | 159 // DOM Level 2 Style Interface |
164 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; | 160 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element
*, const String& pseudoElt) const = 0; |
165 | 161 |
166 // WebKit extensions | 162 // WebKit extensions |
167 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con
st String& pseudoElt) const = 0; | 163 virtual PassRefPtrWillBeRawPtr<CSSRuleList> getMatchedCSSRules(Element*, con
st String& pseudoElt) const = 0; |
168 | 164 |
169 // WebKit animation extensions | 165 // WebKit animation extensions |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); | 205 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); |
210 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); | 206 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); |
211 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); | 207 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); |
212 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); | 208 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); |
213 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); | 209 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); |
214 }; | 210 }; |
215 | 211 |
216 } // namespace blink | 212 } // namespace blink |
217 | 213 |
218 #endif // DOMWindow_h | 214 #endif // DOMWindow_h |
OLD | NEW |