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

Side by Side Diff: sky/engine/platform/scroll/ScrollableArea.h

Issue 681293005: Remove getTickmarks. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 const IntPoint& scrollOrigin() const { return m_scrollOrigin; } 125 const IntPoint& scrollOrigin() const { return m_scrollOrigin; }
126 bool scrollOriginChanged() const { return m_scrollOriginChanged; } 126 bool scrollOriginChanged() const { return m_scrollOriginChanged; }
127 127
128 // FIXME(bokan): Meaningless name, rename to isActiveFocus 128 // FIXME(bokan): Meaningless name, rename to isActiveFocus
129 virtual bool isActive() const = 0; 129 virtual bool isActive() const = 0;
130 virtual int scrollSize(ScrollbarOrientation) const = 0; 130 virtual int scrollSize(ScrollbarOrientation) const = 0;
131 virtual void invalidateScrollbar(Scrollbar*, const IntRect&); 131 virtual void invalidateScrollbar(Scrollbar*, const IntRect&);
132 virtual bool isScrollCornerVisible() const = 0; 132 virtual bool isScrollCornerVisible() const = 0;
133 virtual IntRect scrollCornerRect() const = 0; 133 virtual IntRect scrollCornerRect() const = 0;
134 virtual void invalidateScrollCorner(const IntRect&); 134 virtual void invalidateScrollCorner(const IntRect&);
135 virtual void getTickmarks(Vector<IntRect>&) const { }
136 135
137 // Convert points and rects between the scrollbar and its containing view. 136 // Convert points and rects between the scrollbar and its containing view.
138 // The client needs to implement these in order to be aware of layout effect s 137 // The client needs to implement these in order to be aware of layout effect s
139 // like CSS transforms. 138 // like CSS transforms.
140 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar* scroll bar, const IntRect& scrollbarRect) const 139 virtual IntRect convertFromScrollbarToContainingView(const Scrollbar* scroll bar, const IntRect& scrollbarRect) const
141 { 140 {
142 return scrollbar->Widget::convertToContainingView(scrollbarRect); 141 return scrollbar->Widget::convertToContainingView(scrollbarRect);
143 } 142 }
144 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar* scroll bar, const IntRect& parentRect) const 143 virtual IntRect convertFromContainingViewToScrollbar(const Scrollbar* scroll bar, const IntRect& parentRect) const
145 { 144 {
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 // vertical-lr / ltr NO NO 285 // vertical-lr / ltr NO NO
287 // vertical-lr / rtl NO YES 286 // vertical-lr / rtl NO YES
288 // vertical-rl / ltr YES NO 287 // vertical-rl / ltr YES NO
289 // vertical-rl / rtl YES YES 288 // vertical-rl / rtl YES YES
290 IntPoint m_scrollOrigin; 289 IntPoint m_scrollOrigin;
291 }; 290 };
292 291
293 } // namespace blink 292 } // namespace blink
294 293
295 #endif // ScrollableArea_h 294 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « sky/engine/platform/exported/WebScrollbarImpl.cpp ('k') | sky/engine/platform/scroll/Scrollbar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698