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

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

Issue 14296003: Remove TOUCH_EVENTS and TOUCH_EVENT_TRACKING compile-time flags. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase. Created 7 years, 8 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
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 MainThreadScrollingReasons mainThreadScrollingReasons() const; 94 MainThreadScrollingReasons mainThreadScrollingReasons() const;
95 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; } 95 bool shouldUpdateScrollLayerPositionOnMainThread() const { return mainThread ScrollingReasons() != 0; }
96 96
97 void willDestroyScrollableArea(ScrollableArea*); 97 void willDestroyScrollableArea(ScrollableArea*);
98 void scrollableAreaScrollLayerDidChange(ScrollableArea*); 98 void scrollableAreaScrollLayerDidChange(ScrollableArea*);
99 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion); 99 void scrollableAreaScrollbarLayerDidChange(ScrollableArea*, ScrollbarOrienta tion);
100 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool); 100 void setLayerIsContainerForFixedPositionLayers(GraphicsLayer*, bool);
101 void updateLayerPositionConstraint(RenderLayer*); 101 void updateLayerPositionConstraint(RenderLayer*);
102 void touchEventTargetRectsDidChange(const Document*); 102 void touchEventTargetRectsDidChange(const Document*);
103 103
104 #if ENABLE(TOUCH_EVENT_TRACKING)
105 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ; 104 void computeAbsoluteTouchEventTargetRects(const Document*, Vector<IntRect>&) ;
106 #endif
107 105
108 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons); 106 static String mainThreadScrollingReasonsAsText(MainThreadScrollingReasons);
109 String mainThreadScrollingReasonsAsText() const; 107 String mainThreadScrollingReasonsAsText() const;
110 108
111 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc ation) const; 109 Region computeNonFastScrollableRegion(const Frame*, const IntPoint& frameLoc ation) const;
112 110
113 protected: 111 protected:
114 explicit ScrollingCoordinator(Page*); 112 explicit ScrollingCoordinator(Page*);
115 113
116 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*); 114 static GraphicsLayer* scrollLayerForScrollableArea(ScrollableArea*);
(...skipping 25 matching lines...) Expand all
142 140
143 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap; 141 typedef HashMap<ScrollableArea*, OwnPtr<WebKit::WebScrollbarLayer> > Scrollb arMap;
144 ScrollbarMap m_horizontalScrollbars; 142 ScrollbarMap m_horizontalScrollbars;
145 ScrollbarMap m_verticalScrollbars; 143 ScrollbarMap m_verticalScrollbars;
146 144
147 }; 145 };
148 146
149 } // namespace WebCore 147 } // namespace WebCore
150 148
151 #endif // ScrollingCoordinator_h 149 #endif // ScrollingCoordinator_h
OLDNEW
« no previous file with comments | « Source/core/page/Settings.cpp ('k') | Source/core/page/scrolling/ScrollingCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698