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 23 matching lines...) Expand all Loading... |
34 #include "WebNavigationPolicy.h" | 34 #include "WebNavigationPolicy.h" |
35 #include "public/platform/WebCommon.h" | 35 #include "public/platform/WebCommon.h" |
36 #include "public/platform/WebLayerTreeView.h" | 36 #include "public/platform/WebLayerTreeView.h" |
37 #include "public/platform/WebPoint.h" | 37 #include "public/platform/WebPoint.h" |
38 #include "public/platform/WebRect.h" | 38 #include "public/platform/WebRect.h" |
39 #include "public/platform/WebScreenInfo.h" | 39 #include "public/platform/WebScreenInfo.h" |
40 #include "public/web/WebTouchAction.h" | 40 #include "public/web/WebTouchAction.h" |
41 | 41 |
42 namespace blink { | 42 namespace blink { |
43 | 43 |
| 44 struct WebFloatPoint; |
| 45 struct WebFloatSize; |
44 class WebGestureEvent; | 46 class WebGestureEvent; |
45 class WebNode; | 47 class WebNode; |
46 class WebString; | 48 class WebString; |
47 class WebWidget; | 49 class WebWidget; |
48 struct WebCursorInfo; | 50 struct WebCursorInfo; |
49 struct WebSize; | 51 struct WebSize; |
50 | 52 |
51 class WebWidgetClient { | 53 class WebWidgetClient { |
52 public: | 54 public: |
53 // Called when a region of the WebWidget needs to be re-painted. | 55 // Called when a region of the WebWidget needs to be re-painted. |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 // including when a lock is pending but not yet acquired. | 147 // including when a lock is pending but not yet acquired. |
146 // WebWidget::didLosePointerLock() is called when unlock is complete. | 148 // WebWidget::didLosePointerLock() is called when unlock is complete. |
147 virtual void requestPointerUnlock() { } | 149 virtual void requestPointerUnlock() { } |
148 | 150 |
149 // Returns true iff the pointer is locked to this widget. | 151 // Returns true iff the pointer is locked to this widget. |
150 virtual bool isPointerLocked() { return false; } | 152 virtual bool isPointerLocked() { return false; } |
151 | 153 |
152 // Called when a gesture event is handled. | 154 // Called when a gesture event is handled. |
153 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } | 155 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } |
154 | 156 |
| 157 // Called when overscrolled on main thread. |
| 158 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi
ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize
& velocity) { } |
| 159 |
155 // Called to update if touch events should be sent. | 160 // Called to update if touch events should be sent. |
156 virtual void hasTouchEventHandlers(bool) { } | 161 virtual void hasTouchEventHandlers(bool) { } |
157 | 162 |
158 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder | 163 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder |
159 // of the touch actions that are permitted for this touch. | 164 // of the touch actions that are permitted for this touch. |
160 virtual void setTouchAction(WebTouchAction touchAction) { } | 165 virtual void setTouchAction(WebTouchAction touchAction) { } |
161 | 166 |
162 // Called when value of focused text field gets dirty, e.g. value is | 167 // Called when value of focused text field gets dirty, e.g. value is |
163 // modified by script, not by user input. | 168 // modified by script, not by user input. |
164 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 169 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
(...skipping 15 matching lines...) Expand all Loading... |
180 // something as a result of a tap without explicitly consuming the event. | 185 // something as a result of a tap without explicitly consuming the event. |
181 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, | 186 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, |
182 const WebNode& tappedNode, bool pageChanged) { } | 187 const WebNode& tappedNode, bool pageChanged) { } |
183 protected: | 188 protected: |
184 ~WebWidgetClient() { } | 189 ~WebWidgetClient() { } |
185 }; | 190 }; |
186 | 191 |
187 } // namespace blink | 192 } // namespace blink |
188 | 193 |
189 #endif | 194 #endif |
OLD | NEW |