| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is | 96 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is |
| 97 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the | 97 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the |
| 98 // WebWidget out of fullscreen mode. | 98 // WebWidget out of fullscreen mode. |
| 99 virtual bool enterFullScreen() { return false; } | 99 virtual bool enterFullScreen() { return false; } |
| 100 virtual void exitFullScreen() { } | 100 virtual void exitFullScreen() { } |
| 101 | 101 |
| 102 // Called to get/set the position of the widget in screen coordinates. | 102 // Called to get/set the position of the widget in screen coordinates. |
| 103 virtual WebRect windowRect() { return WebRect(); } | 103 virtual WebRect windowRect() { return WebRect(); } |
| 104 virtual void setWindowRect(const WebRect&) { } | 104 virtual void setWindowRect(const WebRect&) { } |
| 105 | 105 |
| 106 // Called when a tooltip should be shown at the current cursor position. | |
| 107 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } | |
| 108 | |
| 109 // Called to get the position of the resizer rect in window coordinates. | 106 // Called to get the position of the resizer rect in window coordinates. |
| 110 virtual WebRect windowResizerRect() { return WebRect(); } | 107 virtual WebRect windowResizerRect() { return WebRect(); } |
| 111 | 108 |
| 112 // Called to get the position of the root window containing the widget | 109 // Called to get the position of the root window containing the widget |
| 113 // in screen coordinates. | 110 // in screen coordinates. |
| 114 virtual WebRect rootWindowRect() { return WebRect(); } | 111 virtual WebRect rootWindowRect() { return WebRect(); } |
| 115 | 112 |
| 116 // Called to query information about the screen where this widget is | 113 // Called to query information about the screen where this widget is |
| 117 // displayed. | 114 // displayed. |
| 118 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } | 115 virtual WebScreenInfo screenInfo() { return WebScreenInfo(); } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 138 // Request the browser to show the IME for current input type. | 135 // Request the browser to show the IME for current input type. |
| 139 virtual void showImeIfNeeded() { } | 136 virtual void showImeIfNeeded() { } |
| 140 | 137 |
| 141 protected: | 138 protected: |
| 142 ~WebWidgetClient() { } | 139 ~WebWidgetClient() { } |
| 143 }; | 140 }; |
| 144 | 141 |
| 145 } // namespace blink | 142 } // namespace blink |
| 146 | 143 |
| 147 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_ | 144 #endif // SKY_ENGINE_PUBLIC_WEB_WEBWIDGETCLIENT_H_ |
| OLD | NEW |