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 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (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. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebWidget_h | 31 #ifndef WebWidget_h |
32 #define WebWidget_h | 32 #define WebWidget_h |
33 | 33 |
34 #include "../platform/WebCanvas.h" | 34 #include "../platform/WebCanvas.h" |
35 #include "../platform/WebCommon.h" | 35 #include "../platform/WebCommon.h" |
36 #include "../platform/WebFloatSize.h" | 36 #include "../platform/WebFloatSize.h" |
37 #include "../platform/WebFrameTimingEvent.h" | |
38 #include "../platform/WebInputEventResult.h" | 37 #include "../platform/WebInputEventResult.h" |
39 #include "../platform/WebPoint.h" | 38 #include "../platform/WebPoint.h" |
40 #include "../platform/WebRect.h" | 39 #include "../platform/WebRect.h" |
41 #include "../platform/WebSize.h" | 40 #include "../platform/WebSize.h" |
42 #include "../platform/WebTopControlsState.h" | 41 #include "../platform/WebTopControlsState.h" |
43 #include "WebCompositionUnderline.h" | 42 #include "WebCompositionUnderline.h" |
44 #include "WebTextDirection.h" | 43 #include "WebTextDirection.h" |
45 #include "WebTextInputInfo.h" | 44 #include "WebTextInputInfo.h" |
46 | 45 |
47 namespace blink { | 46 namespace blink { |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 | 121 |
123 // Applies viewport related properties during a commit from the compositor | 122 // Applies viewport related properties during a commit from the compositor |
124 // thread. | 123 // thread. |
125 virtual void applyViewportDeltas( | 124 virtual void applyViewportDeltas( |
126 const WebFloatSize& visualViewportDelta, | 125 const WebFloatSize& visualViewportDelta, |
127 const WebFloatSize& layoutViewportDelta, | 126 const WebFloatSize& layoutViewportDelta, |
128 const WebFloatSize& elasticOverscrollDelta, | 127 const WebFloatSize& elasticOverscrollDelta, |
129 float scaleFactor, | 128 float scaleFactor, |
130 float topControlsShownRatioDelta) { } | 129 float topControlsShownRatioDelta) { } |
131 | 130 |
132 // Records composite or render events for the Performance Timeline. | |
133 // See http://w3c.github.io/frame-timing/ for definition of terms. | |
134 enum FrameTimingEventType { | |
135 CompositeEvent, | |
136 RenderEvent, | |
137 }; | |
138 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t
RectId, const WebVector<WebFrameTimingEvent>& events) { } | |
139 | |
140 // Called to inform the WebWidget that mouse capture was lost. | 131 // Called to inform the WebWidget that mouse capture was lost. |
141 virtual void mouseCaptureLost() { } | 132 virtual void mouseCaptureLost() { } |
142 | 133 |
143 // Called to inform the WebWidget that it has gained or lost keyboard focus. | 134 // Called to inform the WebWidget that it has gained or lost keyboard focus. |
144 virtual void setFocus(bool) { } | 135 virtual void setFocus(bool) { } |
145 | 136 |
146 // Called to inform the WebWidget of a new composition text. | 137 // Called to inform the WebWidget of a new composition text. |
147 // If selectionStart and selectionEnd has the same value, then it indicates | 138 // If selectionStart and selectionEnd has the same value, then it indicates |
148 // the input caret position. If the text is empty, then the existing | 139 // the input caret position. If the text is empty, then the existing |
149 // composition text will be cancelled. | 140 // composition text will be cancelled. |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // control what are valid states for top controls and if it should animate. | 244 // control what are valid states for top controls and if it should animate. |
254 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 245 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
255 | 246 |
256 protected: | 247 protected: |
257 ~WebWidget() { } | 248 ~WebWidget() { } |
258 }; | 249 }; |
259 | 250 |
260 } // namespace blink | 251 } // namespace blink |
261 | 252 |
262 #endif | 253 #endif |
OLD | NEW |