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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebWidgetClient_h | 31 #ifndef WebWidgetClient_h |
32 #define WebWidgetClient_h | 32 #define WebWidgetClient_h |
33 | 33 |
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/WebRect.h" | 37 #include "public/platform/WebRect.h" |
38 #include "public/platform/WebScreenInfo.h" | 38 #include "public/platform/WebScreenInfo.h" |
| 39 #include "public/web/WebTouchAction.h" |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
42 class WebGestureEvent; | 43 class WebGestureEvent; |
43 class WebString; | 44 class WebString; |
44 class WebWidget; | 45 class WebWidget; |
45 struct WebCursorInfo; | 46 struct WebCursorInfo; |
46 struct WebSize; | 47 struct WebSize; |
47 | 48 |
48 class WebWidgetClient { | 49 class WebWidgetClient { |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 | 166 |
166 // Returns true iff the pointer is locked to this widget. | 167 // Returns true iff the pointer is locked to this widget. |
167 virtual bool isPointerLocked() { return false; } | 168 virtual bool isPointerLocked() { return false; } |
168 | 169 |
169 // Called when a gesture event is handled. | 170 // Called when a gesture event is handled. |
170 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } | 171 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } |
171 | 172 |
172 // Called to update if touch events should be sent. | 173 // Called to update if touch events should be sent. |
173 virtual void hasTouchEventHandlers(bool) { } | 174 virtual void hasTouchEventHandlers(bool) { } |
174 | 175 |
| 176 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder |
| 177 // of the touch actions that are permitted for this touch. |
| 178 virtual void setTouchAction(WebTouchAction touchAction) { } |
| 179 |
175 protected: | 180 protected: |
176 ~WebWidgetClient() { } | 181 ~WebWidgetClient() { } |
177 }; | 182 }; |
178 | 183 |
179 } // namespace blink | 184 } // namespace blink |
180 | 185 |
181 #endif | 186 #endif |
OLD | NEW |