| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // including when a lock is pending but not yet acquired. | 146 // including when a lock is pending but not yet acquired. |
| 147 // WebWidget::didLosePointerLock() is called when unlock is complete. | 147 // WebWidget::didLosePointerLock() is called when unlock is complete. |
| 148 virtual void requestPointerUnlock() { } | 148 virtual void requestPointerUnlock() { } |
| 149 | 149 |
| 150 // Returns true iff the pointer is locked to this widget. | 150 // Returns true iff the pointer is locked to this widget. |
| 151 virtual bool isPointerLocked() { return false; } | 151 virtual bool isPointerLocked() { return false; } |
| 152 | 152 |
| 153 // Called when a gesture event is handled. | 153 // Called when a gesture event is handled. |
| 154 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } | 154 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC
ancelled) { } |
| 155 | 155 |
| 156 // Called to update if touch events should be sent. | |
| 157 virtual void hasTouchEventHandlers(bool) { } | |
| 158 | |
| 159 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder | 156 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor
m the embedder |
| 160 // of the touch actions that are permitted for this touch. | 157 // of the touch actions that are permitted for this touch. |
| 161 virtual void setTouchAction(WebTouchAction touchAction) { } | 158 virtual void setTouchAction(WebTouchAction touchAction) { } |
| 162 | 159 |
| 163 // Called when value of focused text field gets dirty, e.g. value is | 160 // Called when value of focused text field gets dirty, e.g. value is |
| 164 // modified by script, not by user input. | 161 // modified by script, not by user input. |
| 165 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } | 162 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } |
| 166 | 163 |
| 167 // Request the browser to show the IME for current input type. | 164 // Request the browser to show the IME for current input type. |
| 168 virtual void showImeIfNeeded() { } | 165 virtual void showImeIfNeeded() { } |
| 169 | 166 |
| 170 protected: | 167 protected: |
| 171 ~WebWidgetClient() { } | 168 ~WebWidgetClient() { } |
| 172 }; | 169 }; |
| 173 | 170 |
| 174 } // namespace blink | 171 } // namespace blink |
| 175 | 172 |
| 176 #endif | 173 #endif |
| OLD | NEW |