| OLD | NEW |
| 1 /* Copyright (C) 2012 Google Inc. All rights reserved. | 1 /* Copyright (C) 2012 Google Inc. All rights reserved. |
| 2 * | 2 * |
| 3 * Redistribution and use in source and binary forms, with or without | 3 * Redistribution and use in source and binary forms, with or without |
| 4 * modification, are permitted provided that the following conditions | 4 * modification, are permitted provided that the following conditions |
| 5 * are met: | 5 * are met: |
| 6 * 1. Redistributions of source code must retain the above copyright | 6 * 1. Redistributions of source code must retain the above copyright |
| 7 * notice, this list of conditions and the following disclaimer. | 7 * notice, this list of conditions and the following disclaimer. |
| 8 * 2. Redistributions in binary form must reproduce the above copyright | 8 * 2. Redistributions in binary form must reproduce the above copyright |
| 9 * notice, this list of conditions and the following disclaimer in the | 9 * notice, this list of conditions and the following disclaimer in the |
| 10 * documentation and/or other materials provided with the distribution. | 10 * documentation and/or other materials provided with the distribution. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 // Scroll the selected layer vertically by one logical page in the given | 62 // Scroll the selected layer vertically by one logical page in the given |
| 63 // direction. | 63 // direction. |
| 64 virtual bool scrollVerticallyByPageIfPossible(WebPoint origin, WebScrollbar:
:ScrollDirection) = 0; | 64 virtual bool scrollVerticallyByPageIfPossible(WebPoint origin, WebScrollbar:
:ScrollDirection) = 0; |
| 65 | 65 |
| 66 // Push velocity updates for the duration of animated fling gestures. | 66 // Push velocity updates for the duration of animated fling gestures. |
| 67 virtual void notifyCurrentFlingVelocity(WebFloatSize velocity) { } | 67 virtual void notifyCurrentFlingVelocity(WebFloatSize velocity) { } |
| 68 | 68 |
| 69 // Returns ScrollStarted if a layer was being actively being scrolled, | 69 // Returns ScrollStarted if a layer was being actively being scrolled, |
| 70 // ScrollIgnored if not. | 70 // ScrollIgnored if not. |
| 71 virtual ScrollStatus flingScrollBegin() = 0; | 71 virtual ScrollStatus flingScrollBegin(WebFloatSize velocity) = 0; |
| 72 | 72 |
| 73 // Stop scrolling the selected layer. Should only be called if scrollBegin() | 73 // Stop scrolling the selected layer. Should only be called if scrollBegin() |
| 74 // returned ScrollStarted. | 74 // returned ScrollStarted. |
| 75 virtual void scrollEnd() = 0; | 75 virtual void scrollEnd() = 0; |
| 76 | 76 |
| 77 virtual void pinchGestureBegin() = 0; | 77 virtual void pinchGestureBegin() = 0; |
| 78 virtual void pinchGestureUpdate(float magnifyDelta, WebPoint anchor) = 0; | 78 virtual void pinchGestureUpdate(float magnifyDelta, WebPoint anchor) = 0; |
| 79 virtual void pinchGestureEnd() = 0; | 79 virtual void pinchGestureEnd() = 0; |
| 80 | 80 |
| 81 virtual void startPageScaleAnimation(WebSize targetPosition, | 81 virtual void startPageScaleAnimation(WebSize targetPosition, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 96 // monotonicallyIncreasingTime(). | 96 // monotonicallyIncreasingTime(). |
| 97 virtual void didReceiveLastInputEventForVSync(double frameTimeSeconds) { } | 97 virtual void didReceiveLastInputEventForVSync(double frameTimeSeconds) { } |
| 98 | 98 |
| 99 protected: | 99 protected: |
| 100 virtual ~WebInputHandlerClient() { } | 100 virtual ~WebInputHandlerClient() { } |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } | 103 } |
| 104 | 104 |
| 105 #endif | 105 #endif |
| OLD | NEW |