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

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

Issue 929213004: Plumb selection bounds as a single unit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const WebLayer* overscrollElasticityLayer, 117 const WebLayer* overscrollElasticityLayer,
118 const WebLayer* pageScaleLayer, 118 const WebLayer* pageScaleLayer,
119 const WebLayer* innerViewportScrollLayer, 119 const WebLayer* innerViewportScrollLayer,
120 const WebLayer* outerViewportScrollLayer) { } 120 const WebLayer* outerViewportScrollLayer) { }
121 virtual void clearViewportLayers() { } 121 virtual void clearViewportLayers() { }
122 122
123 // Used to update the active selection bounds. 123 // Used to update the active selection bounds.
124 // If the (empty) selection is an insertion point, |start| and |end| will be identical with type |Caret|. 124 // If the (empty) selection is an insertion point, |start| and |end| will be identical with type |Caret|.
125 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| ma y share the same type, 125 // If the (non-empty) selection has mixed RTL/LTR text, |start| and |end| ma y share the same type,
126 // |SelectionLeft| or |SelectionRight|. 126 // |SelectionLeft| or |SelectionRight|.
127 // TOOD(jdduke): Remove this function when downstream consumers have been up dated to use WebSelectionBounds.
127 virtual void registerSelection(const WebSelectionBound& start, const WebSele ctionBound& end) { } 128 virtual void registerSelection(const WebSelectionBound& start, const WebSele ctionBound& end) { }
129 virtual void registerSelection(const WebSelectionBounds& bounds) { registerS election(bounds.start, bounds.end); }
128 virtual void clearSelection() { } 130 virtual void clearSelection() { }
129 131
130 // Debugging / dangerous --------------------------------------------- 132 // Debugging / dangerous ---------------------------------------------
131 133
132 // Toggles the FPS counter in the HUD layer 134 // Toggles the FPS counter in the HUD layer
133 virtual void setShowFPSCounter(bool) { } 135 virtual void setShowFPSCounter(bool) { }
134 136
135 // Toggles the paint rects in the HUD layer 137 // Toggles the paint rects in the HUD layer
136 virtual void setShowPaintRects(bool) { } 138 virtual void setShowPaintRects(bool) { }
137 139
138 // Toggles the debug borders on layers 140 // Toggles the debug borders on layers
139 virtual void setShowDebugBorders(bool) { } 141 virtual void setShowDebugBorders(bool) { }
140 142
141 // Toggles continuous painting 143 // Toggles continuous painting
142 virtual void setContinuousPaintingEnabled(bool) { } 144 virtual void setContinuousPaintingEnabled(bool) { }
143 145
144 // Toggles scroll bottleneck rects on the HUD layer 146 // Toggles scroll bottleneck rects on the HUD layer
145 virtual void setShowScrollBottleneckRects(bool) { } 147 virtual void setShowScrollBottleneckRects(bool) { }
146 }; 148 };
147 149
148 } // namespace blink 150 } // namespace blink
149 151
150 #endif // WebLayerTreeView_h 152 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698