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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 // Applies viewport related properties during a commit from the compositor | 148 // Applies viewport related properties during a commit from the compositor |
149 // thread. | 149 // thread. |
150 virtual void applyViewportDeltas( | 150 virtual void applyViewportDeltas( |
151 const WebFloatSize& pinchViewportDelta, | 151 const WebFloatSize& pinchViewportDelta, |
152 const WebFloatSize& mainFrameDelta, | 152 const WebFloatSize& mainFrameDelta, |
153 const WebFloatSize& elasticOverscrollDelta, | 153 const WebFloatSize& elasticOverscrollDelta, |
154 float scaleFactor, | 154 float scaleFactor, |
155 float topControlsShownRatioDelta) { } | 155 float topControlsShownRatioDelta) { } |
156 | 156 |
| 157 // Records composite or render events for the Performance Timeline. |
| 158 // See http://w3c.github.io/frame-timing/ for definition of terms. |
| 159 enum FrameTimingEventType { |
| 160 CompositeEvent, |
| 161 RenderEvent, |
| 162 }; |
| 163 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t
RectId, const WebVector<std::pair<int, double>>& events) { } |
| 164 |
157 // Called to inform the WebWidget that mouse capture was lost. | 165 // Called to inform the WebWidget that mouse capture was lost. |
158 virtual void mouseCaptureLost() { } | 166 virtual void mouseCaptureLost() { } |
159 | 167 |
160 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 168 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
161 virtual void setFocus(bool) { } | 169 virtual void setFocus(bool) { } |
162 | 170 |
163 // Called to inform the WebWidget of a new composition text. | 171 // Called to inform the WebWidget of a new composition text. |
164 // If selectionStart and selectionEnd has the same value, then it indicates | 172 // If selectionStart and selectionEnd has the same value, then it indicates |
165 // the input caret position. If the text is empty, then the existing | 173 // the input caret position. If the text is empty, then the existing |
166 // composition text will be cancelled. | 174 // composition text will be cancelled. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // control what are valid states for top controls and if it should animate. | 281 // control what are valid states for top controls and if it should animate. |
274 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 282 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
275 | 283 |
276 protected: | 284 protected: |
277 ~WebWidget() { } | 285 ~WebWidget() { } |
278 }; | 286 }; |
279 | 287 |
280 } // namespace blink | 288 } // namespace blink |
281 | 289 |
282 #endif | 290 #endif |
OLD | NEW |