OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 3 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 4 * |
4 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
6 * met: | 7 * met: |
7 * | 8 * |
8 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 11 * * Redistributions in binary form must reproduce the above |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 154 |
154 // Applies viewport related properties during a commit from the compositor | 155 // Applies viewport related properties during a commit from the compositor |
155 // thread. | 156 // thread. |
156 virtual void applyViewportDeltas( | 157 virtual void applyViewportDeltas( |
157 const WebFloatSize& pinchViewportDelta, | 158 const WebFloatSize& pinchViewportDelta, |
158 const WebFloatSize& mainFrameDelta, | 159 const WebFloatSize& mainFrameDelta, |
159 const WebFloatSize& elasticOverscrollDelta, | 160 const WebFloatSize& elasticOverscrollDelta, |
160 float scaleFactor, | 161 float scaleFactor, |
161 float topControlsShownRatioDelta) { } | 162 float topControlsShownRatioDelta) { } |
162 | 163 |
| 164 // Records composite or render events for the Performance Timeline. |
| 165 // See http://w3c.github.io/frame-timing/ for definition of terms. |
| 166 enum FrameTimingEventType { |
| 167 CompositeEvent, |
| 168 RenderEvent, |
| 169 }; |
| 170 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t
RectId, const WebVector<std::tuple<int, double, double>>& events) { } |
| 171 |
163 // Called to inform the WebWidget that mouse capture was lost. | 172 // Called to inform the WebWidget that mouse capture was lost. |
164 virtual void mouseCaptureLost() { } | 173 virtual void mouseCaptureLost() { } |
165 | 174 |
166 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 175 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
167 virtual void setFocus(bool) { } | 176 virtual void setFocus(bool) { } |
168 | 177 |
169 // Called to inform the WebWidget of a new composition text. | 178 // Called to inform the WebWidget of a new composition text. |
170 // If selectionStart and selectionEnd has the same value, then it indicates | 179 // If selectionStart and selectionEnd has the same value, then it indicates |
171 // the input caret position. If the text is empty, then the existing | 180 // the input caret position. If the text is empty, then the existing |
172 // composition text will be cancelled. | 181 // composition text will be cancelled. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // control what are valid states for top controls and if it should animate. | 288 // control what are valid states for top controls and if it should animate. |
280 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 289 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
281 | 290 |
282 protected: | 291 protected: |
283 ~WebWidget() { } | 292 ~WebWidget() { } |
284 }; | 293 }; |
285 | 294 |
286 } // namespace blink | 295 } // namespace blink |
287 | 296 |
288 #endif | 297 #endif |
OLD | NEW |