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

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

Issue 2387113002: reflow comments in public/platform/ (Closed)
Patch Set: nit Created 4 years, 2 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual WebSize getViewportSize() const { return WebSize(); } 71 virtual WebSize getViewportSize() const { return WebSize(); }
72 72
73 virtual void setDeviceScaleFactor(float) {} 73 virtual void setDeviceScaleFactor(float) {}
74 74
75 // Sets the background color for the viewport. 75 // Sets the background color for the viewport.
76 virtual void setBackgroundColor(WebColor) {} 76 virtual void setBackgroundColor(WebColor) {}
77 77
78 // Sets the background transparency for the viewport. The default is 'false'. 78 // Sets the background transparency for the viewport. The default is 'false'.
79 virtual void setHasTransparentBackground(bool) {} 79 virtual void setHasTransparentBackground(bool) {}
80 80
81 // Sets whether this view is visible. In threaded mode, a view that is not vis ible will not 81 // Sets whether this view is visible. In threaded mode, a view that is not
82 // composite or trigger updateAnimations() or layout() calls until it becomes visible. 82 // visible will not composite or trigger updateAnimations() or layout() calls
83 // until it becomes visible.
83 virtual void setVisible(bool) {} 84 virtual void setVisible(bool) {}
84 85
85 // Sets the current page scale factor and minimum / maximum limits. Both limit s are initially 1 (no page scale allowed). 86 // Sets the current page scale factor and minimum / maximum limits. Both
87 // limits are initially 1 (no page scale allowed).
86 virtual void setPageScaleFactorAndLimits(float pageScaleFactor, 88 virtual void setPageScaleFactorAndLimits(float pageScaleFactor,
87 float minimum, 89 float minimum,
88 float maximum) {} 90 float maximum) {}
89 91
90 // Starts an animation of the page scale to a target scale factor and scroll o ffset. 92 // Starts an animation of the page scale to a target scale factor and scroll
91 // If useAnchor is true, destination is a point on the screen that will remain fixed for the duration of the animation. 93 // offset.
94 // If useAnchor is true, destination is a point on the screen that will remain
95 // fixed for the duration of the animation.
92 // If useAnchor is false, destination is the final top-left scroll position. 96 // If useAnchor is false, destination is the final top-left scroll position.
93 virtual void startPageScaleAnimation(const WebPoint& destination, 97 virtual void startPageScaleAnimation(const WebPoint& destination,
94 bool useAnchor, 98 bool useAnchor,
95 float newPageScale, 99 float newPageScale,
96 double durationSec) {} 100 double durationSec) {}
97 101
98 // Returns true if the page scale animation had started. 102 // Returns true if the page scale animation had started.
99 virtual bool hasPendingPageScaleAnimation() const { return false; } 103 virtual bool hasPendingPageScaleAnimation() const { return false; }
100 104
101 virtual void heuristicsForGpuRasterizationUpdated(bool) {} 105 virtual void heuristicsForGpuRasterizationUpdated(bool) {}
102 106
103 // Sets the amount that the top controls are showing, from 0 (hidden) to 1 107 // Sets the amount that the top controls are showing, from 0 (hidden) to 1
104 // (fully shown). 108 // (fully shown).
105 virtual void setTopControlsShownRatio(float) {} 109 virtual void setTopControlsShownRatio(float) {}
106 110
107 // Update top controls permitted and current states 111 // Update top controls permitted and current states
108 virtual void updateTopControlsState(WebTopControlsState constraints, 112 virtual void updateTopControlsState(WebTopControlsState constraints,
109 WebTopControlsState current, 113 WebTopControlsState current,
110 bool animate) {} 114 bool animate) {}
111 115
112 // Set top controls height. If |shrinkViewport| is set to true, then Blink shr unk the viewport clip 116 // Set top controls height. If |shrinkViewport| is set to true, then Blink
113 // layers by the top controls height. 117 // shrunk the viewport clip layers by the top controls height.
114 virtual void setTopControlsHeight(float height, bool shrinkViewport) {} 118 virtual void setTopControlsHeight(float height, bool shrinkViewport) {}
115 119
116 // Flow control and scheduling --------------------------------------- 120 // Flow control and scheduling ---------------------------------------
117 121
118 // Indicates that blink needs a BeginFrame, but that nothing might actually be dirty. 122 // Indicates that blink needs a BeginFrame, but that nothing might actually be
123 // dirty.
119 virtual void setNeedsBeginFrame() {} 124 virtual void setNeedsBeginFrame() {}
120 125
121 // Indicates that blink needs a BeginFrame and to update compositor state. 126 // Indicates that blink needs a BeginFrame and to update compositor state.
122 virtual void setNeedsCompositorUpdate() {} 127 virtual void setNeedsCompositorUpdate() {}
123 128
124 // Relays the end of a fling animation. 129 // Relays the end of a fling animation.
125 virtual void didStopFlinging() {} 130 virtual void didStopFlinging() {}
126 131
127 // Run layout and paint of all pending document changes asynchronously. 132 // Run layout and paint of all pending document changes asynchronously.
128 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback obj ect 133 // The caller is resposible for keeping the WebLayoutAndPaintAsyncCallback
129 // alive until it is called. 134 // object alive until it is called.
130 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) {} 135 virtual void layoutAndPaintAsync(WebLayoutAndPaintAsyncCallback*) {}
131 136
132 // The caller is responsible for keeping the WebCompositeAndReadbackAsyncCallb ack 137 // The caller is responsible for keeping the
133 // object alive until it is called. 138 // WebCompositeAndReadbackAsyncCallback object alive until it is called.
134 virtual void compositeAndReadbackAsync( 139 virtual void compositeAndReadbackAsync(
135 WebCompositeAndReadbackAsyncCallback*) {} 140 WebCompositeAndReadbackAsyncCallback*) {}
136 141
137 // Prevents updates to layer tree from becoming visible. 142 // Prevents updates to layer tree from becoming visible.
138 virtual void setDeferCommits(bool deferCommits) {} 143 virtual void setDeferCommits(bool deferCommits) {}
139 144
140 // Identify key layers to the compositor when using the pinch virtual viewport . 145 // Identify key layers to the compositor when using the pinch virtual
146 // viewport.
141 virtual void registerViewportLayers( 147 virtual void registerViewportLayers(
142 const WebLayer* overscrollElasticityLayer, 148 const WebLayer* overscrollElasticityLayer,
143 const WebLayer* pageScaleLayer, 149 const WebLayer* pageScaleLayer,
144 const WebLayer* innerViewportScrollLayer, 150 const WebLayer* innerViewportScrollLayer,
145 const WebLayer* outerViewportScrollLayer) {} 151 const WebLayer* outerViewportScrollLayer) {}
146 virtual void clearViewportLayers() {} 152 virtual void clearViewportLayers() {}
147 153
148 // Used to update the active selection bounds. 154 // Used to update the active selection bounds.
149 virtual void registerSelection(const WebSelection&) {} 155 virtual void registerSelection(const WebSelection&) {}
150 virtual void clearSelection() {} 156 virtual void clearSelection() {}
(...skipping 25 matching lines...) Expand all
176 // Toggles the debug borders on layers 182 // Toggles the debug borders on layers
177 virtual void setShowDebugBorders(bool) {} 183 virtual void setShowDebugBorders(bool) {}
178 184
179 // Toggles scroll bottleneck rects on the HUD layer 185 // Toggles scroll bottleneck rects on the HUD layer
180 virtual void setShowScrollBottleneckRects(bool) {} 186 virtual void setShowScrollBottleneckRects(bool) {}
181 }; 187 };
182 188
183 } // namespace blink 189 } // namespace blink
184 190
185 #endif // WebLayerTreeView_h 191 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebLayerScrollClient.h ('k') | third_party/WebKit/public/platform/WebLoadingBehaviorFlag.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698