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

Side by Side Diff: third_party/WebKit/Source/core/frame/LocalDOMWindow.h

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Rebase Created 3 years, 7 months 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
OLDNEW
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool find(const String&, 188 bool find(const String&,
189 bool case_sensitive, 189 bool case_sensitive,
190 bool backwards, 190 bool backwards,
191 bool wrap, 191 bool wrap,
192 bool whole_word, 192 bool whole_word,
193 bool search_in_frames, 193 bool search_in_frames,
194 bool show_dialog) const; 194 bool show_dialog) const;
195 195
196 // FIXME: ScrollBehaviorSmooth is currently unsupported in VisualViewport. 196 // FIXME: ScrollBehaviorSmooth is currently unsupported in VisualViewport.
197 // crbug.com/434497 197 // crbug.com/434497
198 void scrollViewportTo(ScrollableArea*,
199 const ScrollOffset&,
200 ScrollBehavior) const;
198 void scrollBy(double x, double y, ScrollBehavior = kScrollBehaviorAuto) const; 201 void scrollBy(double x, double y, ScrollBehavior = kScrollBehaviorAuto) const;
199 void scrollBy(const ScrollToOptions&) const; 202 void scrollBy(const ScrollToOptions&) const;
200 void scrollTo(double x, double y) const; 203 void scrollTo(double x, double y) const;
201 void scrollTo(const ScrollToOptions&) const; 204 void scrollTo(const ScrollToOptions&) const;
202 void scroll(double x, double y) const { scrollTo(x, y); } 205 void scroll(double x, double y) const { scrollTo(x, y); }
203 void scroll(const ScrollToOptions& scroll_to_options) const { 206 void scroll(const ScrollToOptions& scroll_to_options) const {
204 scrollTo(scroll_to_options); 207 scrollTo(scroll_to_options);
205 } 208 }
206 void moveBy(int x, int y) const; 209 void moveBy(int x, int y) const;
207 void moveTo(int x, int y) const; 210 void moveTo(int x, int y) const;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 return status_; 388 return status_;
386 } 389 }
387 390
388 inline String LocalDOMWindow::defaultStatus() const { 391 inline String LocalDOMWindow::defaultStatus() const {
389 return default_status_; 392 return default_status_;
390 } 393 }
391 394
392 } // namespace blink 395 } // namespace blink
393 396
394 #endif // LocalDOMWindow_h 397 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698