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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
165 | 165 |
166 // Returns true iff the pointer is locked to this widget. | 166 // Returns true iff the pointer is locked to this widget. |
167 virtual bool isPointerLocked() { return false; } | 167 virtual bool isPointerLocked() { return false; } |
168 | 168 |
169 // Called when a gesture event is handled. | 169 // Called when a gesture event is handled. |
170 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { } | 170 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { } |
171 | 171 |
172 // Called to update if touch events should be sent. | 172 // Called to update if touch events should be sent. |
173 virtual void hasTouchEventHandlers(bool) { } | 173 virtual void hasTouchEventHandlers(bool) { } |
174 | 174 |
175 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder | |
176 // of the touch actions that are permitted for this touch. | |
177 enum TouchAction { | |
178 TouchActionNone = 0, | |
179 TouchActionAuto = 1 | |
180 }; | |
181 virtual void setTouchAction(int touchId, TouchAction touchAction) { } | |
abarth-chromium
2013/11/18 21:16:59
Why a touchId? Is there some sort of more structu
Rick Byers
2013/11/19 21:24:21
The touchid is the minimal data the embedder needs
| |
182 | |
175 protected: | 183 protected: |
176 ~WebWidgetClient() { } | 184 ~WebWidgetClient() { } |
177 }; | 185 }; |
178 | 186 |
179 } // namespace blink | 187 } // namespace blink |
180 | 188 |
181 #endif | 189 #endif |
OLD | NEW |