| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // Called to get/set the position of the widget in screen coordinates. | 94 // Called to get/set the position of the widget in screen coordinates. |
| 95 virtual WebRect windowRect() { return WebRect(); } | 95 virtual WebRect windowRect() { return WebRect(); } |
| 96 virtual void setWindowRect(const WebRect&) { } | 96 virtual void setWindowRect(const WebRect&) { } |
| 97 | 97 |
| 98 // Called when a tooltip should be shown at the current cursor position. | 98 // Called when a tooltip should be shown at the current cursor position. |
| 99 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } | 99 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } |
| 100 | 100 |
| 101 // Called to get the position of the resizer rect in window coordinates. | 101 // Called to get the position of the resizer rect in window coordinates. |
| 102 virtual WebRect windowResizerRect() { return WebRect(); } | 102 virtual WebRect windowResizerRect() { return WebRect(); } |
| 103 | 103 |
| 104 // Called to get the position of the root window containing the widget | |
| 105 // in screen coordinates. | |
| 106 virtual WebRect rootWindowRect() { return WebRect(); } | |
| 107 | |
| 108 // Called to query information about the screen where this widget is | 104 // Called to query information about the screen where this widget is |
| 109 // displayed. | 105 // displayed. |
| 110 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } | 106 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } |
| 111 | 107 |
| 112 // When this method gets called, WebWidgetClient implementation should | 108 // When this method gets called, WebWidgetClient implementation should |
| 113 // reset the input method by cancelling any ongoing composition. | 109 // reset the input method by cancelling any ongoing composition. |
| 114 virtual void resetInputMethod() { } | 110 virtual void resetInputMethod() { } |
| 115 | 111 |
| 116 // Requests to lock the mouse cursor. If true is returned, the success | 112 // Requests to lock the mouse cursor. If true is returned, the success |
| 117 // result will be asynchronously returned via a single call to | 113 // result will be asynchronously returned via a single call to |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 // migration is completed. | 184 // migration is completed. |
| 189 virtual void convertWindowToViewport(WebFloatRect* rect) {} | 185 virtual void convertWindowToViewport(WebFloatRect* rect) {} |
| 190 | 186 |
| 191 protected: | 187 protected: |
| 192 ~WebWidgetClient() { } | 188 ~WebWidgetClient() { } |
| 193 }; | 189 }; |
| 194 | 190 |
| 195 } // namespace blink | 191 } // namespace blink |
| 196 | 192 |
| 197 #endif | 193 #endif |
| OLD | NEW |