| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 to get the view rect in screen coordinates. This is the actual | 98 // Called to get the view rect in screen coordinates. This is the actual |
| 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 get the position of the resizer rect in window coordinates. | |
| 106 virtual WebRect windowResizerRect() { return WebRect(); } | |
| 107 | |
| 108 // Called to query information about the screen where this widget is | 105 // Called to query information about the screen where this widget is |
| 109 // displayed. | 106 // displayed. |
| 110 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } | 107 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } |
| 111 | 108 |
| 112 // When this method gets called, WebWidgetClient implementation should | 109 // When this method gets called, WebWidgetClient implementation should |
| 113 // reset the input method by cancelling any ongoing composition. | 110 // reset the input method by cancelling any ongoing composition. |
| 114 virtual void resetInputMethod() {} | 111 virtual void resetInputMethod() {} |
| 115 | 112 |
| 116 // Requests to lock the mouse cursor. If true is returned, the success | 113 // Requests to lock the mouse cursor. If true is returned, the success |
| 117 // result will be asynchronously returned via a single call to | 114 // result will be asynchronously returned via a single call to |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // migration is completed. | 181 // migration is completed. |
| 185 virtual void convertWindowToViewport(WebFloatRect* rect) {} | 182 virtual void convertWindowToViewport(WebFloatRect* rect) {} |
| 186 | 183 |
| 187 protected: | 184 protected: |
| 188 ~WebWidgetClient() {} | 185 ~WebWidgetClient() {} |
| 189 }; | 186 }; |
| 190 | 187 |
| 191 } // namespace blink | 188 } // namespace blink |
| 192 | 189 |
| 193 #endif | 190 #endif |
| OLD | NEW |