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

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

Issue 774203003: Update Window API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expected results Created 6 years 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/core.gypi ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 class Element; 25 class Element;
26 class Frame; 26 class Frame;
27 class History; 27 class History;
28 class LocalDOMWindow; 28 class LocalDOMWindow;
29 class Location; 29 class Location;
30 class MediaQueryList; 30 class MediaQueryList;
31 class Navigator; 31 class Navigator;
32 class Performance; 32 class Performance;
33 class RequestAnimationFrameCallback; 33 class RequestAnimationFrameCallback;
34 class Screen; 34 class Screen;
35 class ScrollOptions; 35 class ScrollToOptions;
36 class SerializedScriptValue; 36 class SerializedScriptValue;
37 class Storage; 37 class Storage;
38 class StyleMedia; 38 class StyleMedia;
39 39
40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray; 40 typedef WillBeHeapVector<RefPtrWillBeMember<MessagePort>, 1> MessagePortArray;
41 41
42 class DOMWindow : public RefCountedWillBeGarbageCollectedFinalized<DOMWindow>, p ublic EventTargetWithInlineData, public DOMWindowBase64 { 42 class DOMWindow : public RefCountedWillBeGarbageCollectedFinalized<DOMWindow>, p ublic EventTargetWithInlineData, public DOMWindowBase64 {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 REFCOUNTED_EVENT_TARGET(DOMWindow); 44 REFCOUNTED_EVENT_TARGET(DOMWindow);
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow); 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindow);
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 virtual void print() = 0; 136 virtual void print() = 0;
137 virtual void stop() = 0; 137 virtual void stop() = 0;
138 138
139 virtual void alert(const String& message = String()) = 0; 139 virtual void alert(const String& message = String()) = 0;
140 virtual bool confirm(const String& message) = 0; 140 virtual bool confirm(const String& message) = 0;
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(double x, double y, const ScrollOptions&, ExceptionSta te&) const = 0; 146 virtual void scrollBy(const ScrollToOptions&) const = 0;
147 virtual void scrollTo(double x, double y, ScrollBehavior = ScrollBehaviorAut o) const = 0; 147 virtual void scrollTo(double x, double y) const = 0;
148 virtual void scrollTo(double x, double y, const ScrollOptions&, ExceptionSta te&) 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(double x, double y, const ScrollOptions& scrollOptions, Exceptio nState& exceptionState) const { scrollTo(x, y, scrollOptions, exceptionState); } 150 void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollT oOptions); }
151 virtual void moveBy(float x, float y) const = 0; 151 virtual void moveBy(float x, float y) const = 0;
152 virtual void moveTo(float x, float y) const = 0; 152 virtual void moveTo(float x, float y) const = 0;
153 153
154 virtual void resizeBy(float x, float y) const = 0; 154 virtual void resizeBy(float x, float y) const = 0;
155 virtual void resizeTo(float width, float height) const = 0; 155 virtual void resizeTo(float width, float height) const = 0;
156 156
157 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0 ; 157 virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0 ;
158 158
159 // DOM Level 2 Style Interface 159 // DOM Level 2 Style Interface
160 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt = String()) const = 0; 160 virtual PassRefPtrWillBeRawPtr<CSSStyleDeclaration> getComputedStyle(Element *, const String& pseudoElt = String()) const = 0;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange); 194 DEFINE_ATTRIBUTE_EVENT_LISTENER(orientationchange);
195 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart); 195 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchstart);
196 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove); 196 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchmove);
197 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend); 197 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchend);
198 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel); 198 DEFINE_ATTRIBUTE_EVENT_LISTENER(touchcancel);
199 }; 199 };
200 200
201 } // namespace blink 201 } // namespace blink
202 202
203 #endif // DOMWindow_h 203 #endif // DOMWindow_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698