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

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

Issue 2650343008: Implement Element.scrollIntoView for scroll-behavior: smooth. (Closed)
Patch Set: Fixed the comments 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 scrollHelper(ScrollableArea*, const ScrollOffset&, ScrollBehavior) const;
198 void scrollBy(double x, double y, ScrollBehavior = kScrollBehaviorAuto) const; 199 void scrollBy(double x, double y, ScrollBehavior = kScrollBehaviorAuto) const;
199 void scrollBy(const ScrollToOptions&) const; 200 void scrollBy(const ScrollToOptions&) const;
200 void scrollTo(double x, double y) const; 201 void scrollTo(double x, double y) const;
201 void scrollTo(const ScrollToOptions&) const; 202 void scrollTo(const ScrollToOptions&) const;
202 void scroll(double x, double y) const { scrollTo(x, y); } 203 void scroll(double x, double y) const { scrollTo(x, y); }
203 void scroll(const ScrollToOptions& scroll_to_options) const { 204 void scroll(const ScrollToOptions& scroll_to_options) const {
204 scrollTo(scroll_to_options); 205 scrollTo(scroll_to_options);
205 } 206 }
206 void moveBy(int x, int y) const; 207 void moveBy(int x, int y) const;
207 void moveTo(int x, int y) const; 208 void moveTo(int x, int y) const;
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 return status_; 389 return status_;
389 } 390 }
390 391
391 inline String LocalDOMWindow::defaultStatus() const { 392 inline String LocalDOMWindow::defaultStatus() const {
392 return default_status_; 393 return default_status_;
393 } 394 }
394 395
395 } // namespace blink 396 } // namespace blink
396 397
397 #endif // LocalDOMWindow_h 398 #endif // LocalDOMWindow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698