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