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

Side by Side Diff: Source/core/page/scrolling/ScrollingCoordinator.h

Issue 23620023: Add ability to create solid color scrollbars in ScrollingCoordinator. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 enum MainThreadScrollingReasonFlags { 84 enum MainThreadScrollingReasonFlags {
85 HasSlowRepaintObjects = 1 << 0, 85 HasSlowRepaintObjects = 1 << 0,
86 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1, 86 HasViewportConstrainedObjectsWithoutSupportingFixedLayers = 1 << 1,
87 HasNonLayerViewportConstrainedObjects = 1 << 2, 87 HasNonLayerViewportConstrainedObjects = 1 << 2,
88 }; 88 };
89 89
90 MainThreadScrollingReasons mainThreadScrollingReasons() const; 90 MainThreadScrollingReasons mainThreadScrollingReasons() const;
91 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; } 91 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; }
92 92
93 PassOwnPtr<WebKit::WebScrollbarLayer> createSolidColorScrollbarLayer(Scrollb arOrientation, int thumbThickness);
94
93 void willDestroyScrollableArea(ScrollableArea*); 95 void willDestroyScrollableArea(ScrollableArea*);
94 // Returns true if the coordinator handled this change. 96 // Returns true if the coordinator handled this change.
95 bool scrollableAreaScrollLayerDidChange(ScrollableArea*); 97 bool scrollableAreaScrollLayerDidChange(ScrollableArea*);
96 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); 98 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion);
97 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); 99 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool);
98 void updateLayerPositionConstraint(RenderLayer*); 100 void updateLayerPositionConstraint(RenderLayer*);
99 void touchEventTargetRectsDidChange(const Document*); 101 void touchEventTargetRectsDidChange(const Document*);
100 void willDestroyRenderLayer(RenderLayer*); 102 void willDestroyRenderLayer(RenderLayer*);
101 103
102 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); 104 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 141
140 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; 142 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap;
141 ScrollbarMap m_horizontalScrollbars; 143 ScrollbarMap m_horizontalScrollbars;
142 ScrollbarMap m_verticalScrollbars; 144 ScrollbarMap m_verticalScrollbars;
143 HashSet<const RenderLayer*> m_layersWithTouchRects; 145 HashSet<const RenderLayer*> m_layersWithTouchRects;
144 }; 146 };
145 147
146 } // namespace WebCore 148 } // namespace WebCore
147 149
148 #endif // ScrollingCoordinator_h 150 #endif // ScrollingCoordinator_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698