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

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

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git rebase Created 7 years, 2 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) 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 virtual Scrollbar* horizontalScrollbar() const { return 0; } 135 virtual Scrollbar* horizontalScrollbar() const { return 0; }
136 virtual Scrollbar* verticalScrollbar() const { return 0; } 136 virtual Scrollbar* verticalScrollbar() const { return 0; }
137 137
138 // scrollPosition is relative to the scrollOrigin. i.e. If the page is RTL 138 // scrollPosition is relative to the scrollOrigin. i.e. If the page is RTL
139 // then scrollPosition will be negative. 139 // then scrollPosition will be negative.
140 virtual IntPoint scrollPosition() const = 0; 140 virtual IntPoint scrollPosition() const = 0;
141 virtual IntPoint minimumScrollPosition() const = 0; 141 virtual IntPoint minimumScrollPosition() const = 0;
142 virtual IntPoint maximumScrollPosition() const = 0; 142 virtual IntPoint maximumScrollPosition() const = 0;
143 143
144 enum VisibleContentRectIncludesScrollbars { ExcludeScrollbars, IncludeScroll bars }; 144 enum IncludeScrollbarsInRect { ExcludeScrollbars, IncludeScrollbars };
145 virtual IntRect visibleContentRect(VisibleContentRectIncludesScrollbars = Ex cludeScrollbars) const; 145 virtual IntRect visibleContentRect(IncludeScrollbarsInRect = ExcludeScrollba rs) const;
146 virtual int visibleHeight() const = 0; 146 virtual int visibleHeight() const = 0;
147 virtual int visibleWidth() const = 0; 147 virtual int visibleWidth() const = 0;
148 virtual IntSize contentsSize() const = 0; 148 virtual IntSize contentsSize() const = 0;
149 virtual IntSize overhangAmount() const { return IntSize(); } 149 virtual IntSize overhangAmount() const { return IntSize(); }
150 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); } 150 virtual IntPoint lastKnownMousePosition() const { return IntPoint(); }
151 151
152 virtual bool shouldSuspendScrollAnimations() const { return true; } 152 virtual bool shouldSuspendScrollAnimations() const { return true; }
153 virtual void scrollbarStyleChanged(int /*newStyle*/, bool /*forceUpdate*/) { } 153 virtual void scrollbarStyleChanged(int /*newStyle*/, bool /*forceUpdate*/) { }
154 154
155 virtual bool scrollbarsCanBeActive() const = 0; 155 virtual bool scrollbarsCanBeActive() const = 0;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 // vertical-lr / ltr NO NO 247 // vertical-lr / ltr NO NO
248 // vertical-lr / rtl NO YES 248 // vertical-lr / rtl NO YES
249 // vertical-rl / ltr YES NO 249 // vertical-rl / ltr YES NO
250 // vertical-rl / rtl YES YES 250 // vertical-rl / rtl YES YES
251 IntPoint m_scrollOrigin; 251 IntPoint m_scrollOrigin;
252 }; 252 };
253 253
254 } // namespace WebCore 254 } // namespace WebCore
255 255
256 #endif // ScrollableArea_h 256 #endif // ScrollableArea_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698