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

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

Issue 721473002: Removed ScrollingCoordinator and a bunch of composited scrolling' (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: cr comments 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 else 184 else
185 m_verticalBarDamage.unite(rect); 185 m_verticalBarDamage.unite(rect);
186 } 186 }
187 187
188 void resetScrollbarDamage() 188 void resetScrollbarDamage()
189 { 189 {
190 m_verticalBarDamage = IntRect(); 190 m_verticalBarDamage = IntRect();
191 m_horizontalBarDamage = IntRect(); 191 m_horizontalBarDamage = IntRect();
192 } 192 }
193 193
194 GraphicsLayer* layerForContainer() const;
195 virtual GraphicsLayer* layerForScrolling() const = 0;
196 virtual GraphicsLayer* layerForHorizontalScrollbar() const = 0;
197 virtual GraphicsLayer* layerForVerticalScrollbar() const = 0;
198 bool hasLayerForHorizontalScrollbar() const;
199 bool hasLayerForVerticalScrollbar() const;
200
201 void cancelProgrammaticScrollAnimation(); 194 void cancelProgrammaticScrollAnimation();
202 195
203 protected: 196 protected:
204 ScrollableArea(); 197 ScrollableArea();
205 virtual ~ScrollableArea(); 198 virtual ~ScrollableArea();
206 199
207 void setScrollOrigin(const IntPoint&); 200 void setScrollOrigin(const IntPoint&);
208 void resetScrollOriginChanged() { m_scrollOriginChanged = false; } 201 void resetScrollOriginChanged() { m_scrollOriginChanged = false; }
209 202
210 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0; 203 virtual void invalidateScrollbarRect(Scrollbar*, const IntRect&) = 0;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 // vertical-lr / ltr NO NO 249 // vertical-lr / ltr NO NO
257 // vertical-lr / rtl NO YES 250 // vertical-lr / rtl NO YES
258 // vertical-rl / ltr YES NO 251 // vertical-rl / ltr YES NO
259 // vertical-rl / rtl YES YES 252 // vertical-rl / rtl YES YES
260 IntPoint m_scrollOrigin; 253 IntPoint m_scrollOrigin;
261 }; 254 };
262 255
263 } // namespace blink 256 } // namespace blink
264 257
265 #endif // ScrollableArea_h 258 #endif // ScrollableArea_h
OLDNEW
« no previous file with comments | « sky/engine/platform/graphics/GraphicsLayerClient.h ('k') | sky/engine/platform/scroll/ScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698