| 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // including when a lock is pending but not yet acquired. | 126 // including when a lock is pending but not yet acquired. |
| 127 // WebWidget::didLosePointerLock() is called when unlock is complete. | 127 // WebWidget::didLosePointerLock() is called when unlock is complete. |
| 128 virtual void requestPointerUnlock() { } | 128 virtual void requestPointerUnlock() { } |
| 129 | 129 |
| 130 // Returns true iff the pointer is locked to this widget. | 130 // Returns true iff the pointer is locked to this widget. |
| 131 virtual bool isPointerLocked() { return false; } | 131 virtual bool isPointerLocked() { return false; } |
| 132 | 132 |
| 133 // Called when a gesture event is handled. | 133 // Called when a gesture event is handled. |
| 134 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } | 134 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } |
| 135 | 135 |
| 136 // Called when overscrolled on main thread. | 136 // Called when overscrolled on main thread. All parameters are in |
| 137 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi
ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize
& velocity) { } | 137 // viewport-space. |
| 138 virtual void didOverscroll( |
| 139 const WebFloatSize& overscrollDelta, |
| 140 const WebFloatSize& accumulatedOverscroll, |
| 141 const WebFloatPoint& positionInViewport, |
| 142 const WebFloatSize& velocityInViewport) { } |
| 138 | 143 |
| 139 // Called to update if touch events should be sent. | 144 // Called to update if touch events should be sent. |
| 140 virtual void hasTouchEventHandlers(bool) { } | 145 virtual void hasTouchEventHandlers(bool) { } |
| 141 | 146 |
| 142 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder | 147 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder |
| 143 // of the touch actions that are permitted for this touch. | 148 // of the touch actions that are permitted for this touch. |
| 144 virtual void setTouchAction(WebTouchAction touchAction) { } | 149 virtual void setTouchAction(WebTouchAction touchAction) { } |
| 145 | 150 |
| 146 // Called when value of focused text field gets dirty, e.g. value is | 151 // Called when value of focused text field gets dirty, e.g. value is |
| 147 // modified by script, not by user input. | 152 // modified by script, not by user input. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // migration is completed. | 190 // migration is completed. |
| 186 virtual void convertWindowToViewport(WebFloatRect* rect) {} | 191 virtual void convertWindowToViewport(WebFloatRect* rect) {} |
| 187 | 192 |
| 188 protected: | 193 protected: |
| 189 ~WebWidgetClient() { } | 194 ~WebWidgetClient() { } |
| 190 }; | 195 }; |
| 191 | 196 |
| 192 } // namespace blink | 197 } // namespace blink |
| 193 | 198 |
| 194 #endif | 199 #endif |
| OLD | NEW |