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

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

Issue 1093383003: Remove mainthread overhang painting code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/FramePainter.cpp ('k') | Source/platform/scroll/ScrollableAreaTest.cpp » ('j') | 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 virtual DoublePoint scrollPositionDouble() const { return DoublePoint(scroll Position()); } 172 virtual DoublePoint scrollPositionDouble() const { return DoublePoint(scroll Position()); }
173 virtual IntPoint minimumScrollPosition() const = 0; 173 virtual IntPoint minimumScrollPosition() const = 0;
174 virtual DoublePoint minimumScrollPositionDouble() const { return DoublePoint (minimumScrollPosition()); } 174 virtual DoublePoint minimumScrollPositionDouble() const { return DoublePoint (minimumScrollPosition()); }
175 virtual IntPoint maximumScrollPosition() const = 0; 175 virtual IntPoint maximumScrollPosition() const = 0;
176 virtual DoublePoint maximumScrollPositionDouble() const { return DoublePoint (maximumScrollPosition()); } 176 virtual DoublePoint maximumScrollPositionDouble() const { return DoublePoint (maximumScrollPosition()); }
177 177
178 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba rs) const; 178 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba rs) const;
179 virtual int visibleHeight() const { return visibleContentRect().height(); } 179 virtual int visibleHeight() const { return visibleContentRect().height(); }
180 virtual int visibleWidth() const { return visibleContentRect().width(); } 180 virtual int visibleWidth() const { return visibleContentRect().width(); }
181 virtual IntSize contentsSize() const = 0; 181 virtual IntSize contentsSize() const = 0;
182 virtual IntSize overhangAmount() const { return IntSize(); }
183 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } 182 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); }
184 183
185 virtual bool shouldSuspendScrollAnimations() const { return true; } 184 virtual bool shouldSuspendScrollAnimations() const { return true; }
186 virtual void scrollbarStyleChanged() { } 185 virtual void scrollbarStyleChanged() { }
187 186
188 virtual bool scrollbarsCanBeActive() const = 0; 187 virtual bool scrollbarsCanBeActive() const = 0;
189 188
190 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view. 189 // Returns the bounding box of this scrollable area, in the coordinate syste m of the enclosing scroll view.
191 virtual IntRect scrollableAreaBoundingBox() const = 0; 190 virtual IntRect scrollableAreaBoundingBox() const = 0;
192 191
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 // vertical-lr / ltr NO NO 318 // vertical-lr / ltr NO NO
320 // vertical-lr / rtl NO YES 319 // vertical-lr / rtl NO YES
321 // vertical-rl / ltr YES NO 320 // vertical-rl / ltr YES NO
322 // vertical-rl / rtl YES YES 321 // vertical-rl / rtl YES YES
323 IntPoint m_scrollOrigin; 322 IntPoint m_scrollOrigin;
324 }; 323 };
325 324
326 } // namespace blink 325 } // namespace blink
327 326
328 #endif // ScrollableArea_h 327 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « Source/core/paint/FramePainter.cpp ('k') | Source/platform/scroll/ScrollableAreaTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698