| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 145     // including when a lock is pending but not yet acquired. | 145     // including when a lock is pending but not yet acquired. | 
| 146     // WebWidget::didLosePointerLock() is called when unlock is complete. | 146     // WebWidget::didLosePointerLock() is called when unlock is complete. | 
| 147     virtual void requestPointerUnlock() { } | 147     virtual void requestPointerUnlock() { } | 
| 148 | 148 | 
| 149     // Returns true iff the pointer is locked to this widget. | 149     // Returns true iff the pointer is locked to this widget. | 
| 150     virtual bool isPointerLocked() { return false; } | 150     virtual bool isPointerLocked() { return false; } | 
| 151 | 151 | 
| 152     // Called when a gesture event is handled. | 152     // Called when a gesture event is handled. | 
| 153     virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
     ancelled) { } | 153     virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
     ancelled) { } | 
| 154 | 154 | 
|  | 155     // Called when overscrolled on main thread. | 
|  | 156     virtual void didOverScrollOnMainThread(const float& unusedDeltaX, const floa
     t& unusedDeltaY, const float& accumaltedRootOverScrollX, const float& accumalted
     RootOverScrollY, const float& positionX, const float& positionY, const float& ve
     locityX, const float& velocityY) { } | 
|  | 157 | 
| 155     // Called to update if touch events should be sent. | 158     // Called to update if touch events should be sent. | 
| 156     virtual void hasTouchEventHandlers(bool) { } | 159     virtual void hasTouchEventHandlers(bool) { } | 
| 157 | 160 | 
| 158     // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
     m the embedder | 161     // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
     m the embedder | 
| 159     // of the touch actions that are permitted for this touch. | 162     // of the touch actions that are permitted for this touch. | 
| 160     virtual void setTouchAction(WebTouchAction touchAction) { } | 163     virtual void setTouchAction(WebTouchAction touchAction) { } | 
| 161 | 164 | 
| 162     // Called when value of focused text field gets dirty, e.g. value is | 165     // Called when value of focused text field gets dirty, e.g. value is | 
| 163     // modified by script, not by user input. | 166     // modified by script, not by user input. | 
| 164     virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 167     virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
| 180     // something as a result of a tap without explicitly consuming the event. | 183     // something as a result of a tap without explicitly consuming the event. | 
| 181     virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, | 184     virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, | 
| 182         const WebNode& tappedNode, bool pageChanged) { } | 185         const WebNode& tappedNode, bool pageChanged) { } | 
| 183 protected: | 186 protected: | 
| 184     ~WebWidgetClient() { } | 187     ~WebWidgetClient() { } | 
| 185 }; | 188 }; | 
| 186 | 189 | 
| 187 } // namespace blink | 190 } // namespace blink | 
| 188 | 191 | 
| 189 #endif | 192 #endif | 
| OLD | NEW | 
|---|