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

Unified Diff: Source/core/rendering/ScrollAlignment.h

Issue 132043002: Rename WebCore::ScrollBehavior to ScrollAlignmentBehavior (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and fix another #inlcude Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/ScrollAlignment.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/ScrollAlignment.h
diff --git a/Source/core/rendering/ScrollBehavior.h b/Source/core/rendering/ScrollAlignment.h
similarity index 78%
rename from Source/core/rendering/ScrollBehavior.h
rename to Source/core/rendering/ScrollAlignment.h
index 7c683d874a0fc66610191447316348d943a85cf5..f22b1d9d6a871674e096b851f672d4ddd94200eb 100644
--- a/Source/core/rendering/ScrollBehavior.h
+++ b/Source/core/rendering/ScrollAlignment.h
@@ -41,27 +41,27 @@
* version of this file under any of the LGPL, the MPL or the GPL.
*/
-#ifndef ScrollBehavior_h
-#define ScrollBehavior_h
+#ifndef ScrollAlignment_h
+#define ScrollAlignment_h
namespace WebCore {
-enum ScrollBehavior {
- noScroll,
- alignCenter,
- alignTop,
- alignBottom,
- alignLeft,
- alignRight,
- alignToClosestEdge
+enum ScrollAlignmentBehavior {
+ ScrollAlignmentNoScroll,
+ ScrollAlignmentCenter,
+ ScrollAlignmentTop,
+ ScrollAlignmentBottom,
+ ScrollAlignmentLeft,
+ ScrollAlignmentRight,
+ ScrollAlignmentClosestEdge
};
class LayoutRect;
struct ScrollAlignment {
- static ScrollBehavior getVisibleBehavior(const ScrollAlignment& s) { return s.m_rectVisible; }
- static ScrollBehavior getPartialBehavior(const ScrollAlignment& s) { return s.m_rectPartial; }
- static ScrollBehavior getHiddenBehavior(const ScrollAlignment& s) { return s.m_rectHidden; }
+ static ScrollAlignmentBehavior getVisibleBehavior(const ScrollAlignment& s) { return s.m_rectVisible; }
+ static ScrollAlignmentBehavior getPartialBehavior(const ScrollAlignment& s) { return s.m_rectPartial; }
+ static ScrollAlignmentBehavior getHiddenBehavior(const ScrollAlignment& s) { return s.m_rectHidden; }
// FIXME: This function should probably go somewhere else but where?
static LayoutRect getRectToExpose(const LayoutRect& visibleRect, const LayoutRect& exposeRect, const ScrollAlignment& alignX, const ScrollAlignment& alignY);
@@ -72,12 +72,12 @@ struct ScrollAlignment {
static const ScrollAlignment alignTopAlways;
static const ScrollAlignment alignBottomAlways;
- ScrollBehavior m_rectVisible;
- ScrollBehavior m_rectHidden;
- ScrollBehavior m_rectPartial;
+ ScrollAlignmentBehavior m_rectVisible;
+ ScrollAlignmentBehavior m_rectHidden;
+ ScrollAlignmentBehavior m_rectPartial;
};
}; // namespace WebCore
-#endif // ScrollBehavior_h
+#endif // ScrollAlignment_h
« no previous file with comments | « Source/core/rendering/RenderObject.h ('k') | Source/core/rendering/ScrollAlignment.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698