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

Side by Side Diff: third_party/WebKit/Source/platform/scroll/ScrollableArea.h

Issue 2657183002: Use full mapLocalToAncestor machinery in ScrollingCoordinator. (Closed)
Patch Set: Delete unused test file Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2011 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 virtual int visibleHeight() const { return visibleContentRect().height(); } 239 virtual int visibleHeight() const { return visibleContentRect().height(); }
240 virtual int visibleWidth() const { return visibleContentRect().width(); } 240 virtual int visibleWidth() const { return visibleContentRect().width(); }
241 virtual IntSize contentsSize() const = 0; 241 virtual IntSize contentsSize() const = 0;
242 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } 242 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); }
243 243
244 virtual bool shouldSuspendScrollAnimations() const { return true; } 244 virtual bool shouldSuspendScrollAnimations() const { return true; }
245 virtual void scrollbarStyleChanged() {} 245 virtual void scrollbarStyleChanged() {}
246 virtual bool scrollbarsCanBeActive() const = 0; 246 virtual bool scrollbarsCanBeActive() const = 0;
247 247
248 // Returns the bounding box of this scrollable area, in the coordinate system 248 // Returns the bounding box of this scrollable area, in the coordinate system
249 // of the enclosing scroll view. 249 // of the top-level FrameView.
250 virtual IntRect scrollableAreaBoundingBox() const = 0; 250 virtual IntRect scrollableAreaBoundingBox() const = 0;
251 251
252 virtual bool scrollAnimatorEnabled() const { return false; } 252 virtual bool scrollAnimatorEnabled() const { return false; }
253 253
254 // NOTE: Only called from Internals for testing. 254 // NOTE: Only called from Internals for testing.
255 void updateScrollOffsetFromInternals(const IntSize&); 255 void updateScrollOffsetFromInternals(const IntSize&);
256 256
257 IntSize clampScrollOffset(const IntSize&) const; 257 IntSize clampScrollOffset(const IntSize&) const;
258 ScrollOffset clampScrollOffset(const ScrollOffset&) const; 258 ScrollOffset clampScrollOffset(const ScrollOffset&) const;
259 259
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 // vertical-lr / ltr NO NO 446 // vertical-lr / ltr NO NO
447 // vertical-lr / rtl NO YES 447 // vertical-lr / rtl NO YES
448 // vertical-rl / ltr YES NO 448 // vertical-rl / ltr YES NO
449 // vertical-rl / rtl YES YES 449 // vertical-rl / rtl YES YES
450 IntPoint m_scrollOrigin; 450 IntPoint m_scrollOrigin;
451 }; 451 };
452 452
453 } // namespace blink 453 } // namespace blink
454 454
455 #endif // ScrollableArea_h 455 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698