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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 30 */ |
30 | 31 |
31 #ifndef WebWidget_h | 32 #ifndef WebWidget_h |
32 #define WebWidget_h | 33 #define WebWidget_h |
33 | 34 |
34 #include "../platform/WebCanvas.h" | 35 #include "../platform/WebCanvas.h" |
35 #include "../platform/WebCommon.h" | 36 #include "../platform/WebCommon.h" |
36 #include "../platform/WebFloatSize.h" | 37 #include "../platform/WebFloatSize.h" |
| 38 #include "../platform/WebFrameTimingEvent.h" |
37 #include "../platform/WebPoint.h" | 39 #include "../platform/WebPoint.h" |
38 #include "../platform/WebRect.h" | 40 #include "../platform/WebRect.h" |
39 #include "../platform/WebSize.h" | 41 #include "../platform/WebSize.h" |
40 #include "../platform/WebTopControlsState.h" | 42 #include "../platform/WebTopControlsState.h" |
41 #include "WebBeginFrameArgs.h" | 43 #include "WebBeginFrameArgs.h" |
42 #include "WebCompositionUnderline.h" | 44 #include "WebCompositionUnderline.h" |
43 #include "WebTextDirection.h" | 45 #include "WebTextDirection.h" |
44 #include "WebTextInputInfo.h" | 46 #include "WebTextInputInfo.h" |
45 | 47 |
46 namespace blink { | 48 namespace blink { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 155 |
154 // Applies viewport related properties during a commit from the compositor | 156 // Applies viewport related properties during a commit from the compositor |
155 // thread. | 157 // thread. |
156 virtual void applyViewportDeltas( | 158 virtual void applyViewportDeltas( |
157 const WebFloatSize& pinchViewportDelta, | 159 const WebFloatSize& pinchViewportDelta, |
158 const WebFloatSize& mainFrameDelta, | 160 const WebFloatSize& mainFrameDelta, |
159 const WebFloatSize& elasticOverscrollDelta, | 161 const WebFloatSize& elasticOverscrollDelta, |
160 float scaleFactor, | 162 float scaleFactor, |
161 float topControlsShownRatioDelta) { } | 163 float topControlsShownRatioDelta) { } |
162 | 164 |
| 165 // Records composite or render events for the Performance Timeline. |
| 166 // See http://w3c.github.io/frame-timing/ for definition of terms. |
| 167 enum FrameTimingEventType { |
| 168 CompositeEvent, |
| 169 RenderEvent, |
| 170 }; |
| 171 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t
RectId, const WebVector<WebFrameTimingEvent>& events) { } |
| 172 |
163 // Called to inform the WebWidget that mouse capture was lost. | 173 // Called to inform the WebWidget that mouse capture was lost. |
164 virtual void mouseCaptureLost() { } | 174 virtual void mouseCaptureLost() { } |
165 | 175 |
166 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 176 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
167 virtual void setFocus(bool) { } | 177 virtual void setFocus(bool) { } |
168 | 178 |
169 // Called to inform the WebWidget of a new composition text. | 179 // Called to inform the WebWidget of a new composition text. |
170 // If selectionStart and selectionEnd has the same value, then it indicates | 180 // If selectionStart and selectionEnd has the same value, then it indicates |
171 // the input caret position. If the text is empty, then the existing | 181 // the input caret position. If the text is empty, then the existing |
172 // composition text will be cancelled. | 182 // 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. | 289 // control what are valid states for top controls and if it should animate. |
280 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 290 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
281 | 291 |
282 protected: | 292 protected: |
283 ~WebWidget() { } | 293 ~WebWidget() { } |
284 }; | 294 }; |
285 | 295 |
286 } // namespace blink | 296 } // namespace blink |
287 | 297 |
288 #endif | 298 #endif |
OLD | NEW |