| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 // content view area, i.e. doesn't include any window decorations. | 99 // content view area, i.e. doesn't include any window decorations. |
| 100 virtual WebRect viewRect() { return WebRect(); } | 100 virtual WebRect viewRect() { return WebRect(); } |
| 101 | 101 |
| 102 // Called when a tooltip should be shown at the current cursor position. | 102 // Called when a tooltip should be shown at the current cursor position. |
| 103 virtual void setToolTipText(const WebString&, WebTextDirection hint) {} | 103 virtual void setToolTipText(const WebString&, WebTextDirection hint) {} |
| 104 | 104 |
| 105 // Called to query information about the screen where this widget is | 105 // Called to query information about the screen where this widget is |
| 106 // displayed. | 106 // displayed. |
| 107 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } | 107 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } |
| 108 | 108 |
| 109 // When this method gets called, WebWidgetClient implementation should | |
| 110 // reset the input method by cancelling any ongoing composition. | |
| 111 virtual void resetInputMethod() {} | |
| 112 | |
| 113 // Requests to lock the mouse cursor. If true is returned, the success | 109 // Requests to lock the mouse cursor. If true is returned, the success |
| 114 // result will be asynchronously returned via a single call to | 110 // result will be asynchronously returned via a single call to |
| 115 // WebWidget::didAcquirePointerLock() or | 111 // WebWidget::didAcquirePointerLock() or |
| 116 // WebWidget::didNotAcquirePointerLock(). | 112 // WebWidget::didNotAcquirePointerLock(). |
| 117 // If false, the request has been denied synchronously. | 113 // If false, the request has been denied synchronously. |
| 118 virtual bool requestPointerLock() { return false; } | 114 virtual bool requestPointerLock() { return false; } |
| 119 | 115 |
| 120 // Cause the pointer lock to be released. This may be called at any time, | 116 // Cause the pointer lock to be released. This may be called at any time, |
| 121 // including when a lock is pending but not yet acquired. | 117 // including when a lock is pending but not yet acquired. |
| 122 // WebWidget::didLosePointerLock() is called when unlock is complete. | 118 // WebWidget::didLosePointerLock() is called when unlock is complete. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 const WebImage& dragImage, | 180 const WebImage& dragImage, |
| 185 const WebPoint& dragImageOffset) {} | 181 const WebPoint& dragImageOffset) {} |
| 186 | 182 |
| 187 protected: | 183 protected: |
| 188 ~WebWidgetClient() {} | 184 ~WebWidgetClient() {} |
| 189 }; | 185 }; |
| 190 | 186 |
| 191 } // namespace blink | 187 } // namespace blink |
| 192 | 188 |
| 193 #endif | 189 #endif |
| OLD | NEW |