| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 | 147 |
| 148 // Called when a gesture event is handled. | 148 // Called when a gesture event is handled. |
| 149 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } | 149 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } |
| 150 | 150 |
| 151 // Called when overscrolled on main thread. | 151 // Called when overscrolled on main thread. |
| 152 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi
ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize
& velocity) { } | 152 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi
ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize
& velocity) { } |
| 153 | 153 |
| 154 // Called to update if touch events should be sent. | 154 // Called to update if touch events should be sent. |
| 155 virtual void hasTouchEventHandlers(bool) { } | 155 virtual void hasTouchEventHandlers(bool) { } |
| 156 | 156 |
| 157 // Called to update if touch move events should be sent. |
| 158 virtual void hasTouchMoveEventHandlers(bool) { } |
| 159 |
| 157 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder | 160 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder |
| 158 // of the touch actions that are permitted for this touch. | 161 // of the touch actions that are permitted for this touch. |
| 159 virtual void setTouchAction(WebTouchAction touchAction) { } | 162 virtual void setTouchAction(WebTouchAction touchAction) { } |
| 160 | 163 |
| 161 // Called when value of focused text field gets dirty, e.g. value is | 164 // Called when value of focused text field gets dirty, e.g. value is |
| 162 // modified by script, not by user input. | 165 // modified by script, not by user input. |
| 163 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 166 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
| 164 | 167 |
| 165 // Request the browser to show the IME for current input type. | 168 // Request the browser to show the IME for current input type. |
| 166 virtual void showImeIfNeeded() { } | 169 virtual void showImeIfNeeded() { } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 184 // press or gesture tap. | 187 // press or gesture tap. |
| 185 // Note: This is called even when the mouse down event is prevent default. | 188 // Note: This is called even when the mouse down event is prevent default. |
| 186 virtual void onMouseDown(const WebNode& mouseDownNode) { } | 189 virtual void onMouseDown(const WebNode& mouseDownNode) { } |
| 187 protected: | 190 protected: |
| 188 ~WebWidgetClient() { } | 191 ~WebWidgetClient() { } |
| 189 }; | 192 }; |
| 190 | 193 |
| 191 } // namespace blink | 194 } // namespace blink |
| 192 | 195 |
| 193 #endif | 196 #endif |
| OLD | NEW |