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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 1646603004: Move scroll event handlers from layer to layer tree view. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_cc_listeners
Patch Set: Rebase Created 4 years, 10 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
« no previous file with comments | « third_party/WebKit/public/platform/WebLayer.h ('k') | no next file » | 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 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const WebLayer* innerViewportScrollLayer, 136 const WebLayer* innerViewportScrollLayer,
137 const WebLayer* outerViewportScrollLayer) { } 137 const WebLayer* outerViewportScrollLayer) { }
138 virtual void clearViewportLayers() { } 138 virtual void clearViewportLayers() { }
139 139
140 // Used to update the active selection bounds. 140 // Used to update the active selection bounds.
141 virtual void registerSelection(const WebSelection&) { } 141 virtual void registerSelection(const WebSelection&) { }
142 virtual void clearSelection() { } 142 virtual void clearSelection() { }
143 143
144 // Input properties --------------------------------------------------- 144 // Input properties ---------------------------------------------------
145 virtual void setHaveWheelEventHandlers(bool) { }; 145 virtual void setHaveWheelEventHandlers(bool) { };
146 virtual void setHaveScrollEventHandlers(bool) { };
146 147
147 // Debugging / dangerous --------------------------------------------- 148 // Debugging / dangerous ---------------------------------------------
148 149
149 virtual bool haveWheelEventHandlers() const { return false; }; 150 virtual bool haveWheelEventHandlers() const { return false; };
151 virtual bool haveScrollEventHandlers() const { return false; };
150 152
151 virtual int layerTreeId() const { return 0; } 153 virtual int layerTreeId() const { return 0; }
152 154
153 // Toggles the FPS counter in the HUD layer 155 // Toggles the FPS counter in the HUD layer
154 virtual void setShowFPSCounter(bool) { } 156 virtual void setShowFPSCounter(bool) { }
155 157
156 // Toggles the paint rects in the HUD layer 158 // Toggles the paint rects in the HUD layer
157 virtual void setShowPaintRects(bool) { } 159 virtual void setShowPaintRects(bool) { }
158 160
159 // Toggles the debug borders on layers 161 // Toggles the debug borders on layers
160 virtual void setShowDebugBorders(bool) { } 162 virtual void setShowDebugBorders(bool) { }
161 163
162 // Toggles scroll bottleneck rects on the HUD layer 164 // Toggles scroll bottleneck rects on the HUD layer
163 virtual void setShowScrollBottleneckRects(bool) { } 165 virtual void setShowScrollBottleneckRects(bool) { }
164 }; 166 };
165 167
166 } // namespace blink 168 } // namespace blink
167 169
168 #endif // WebLayerTreeView_h 170 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698