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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // be called asynchronously as a result of this notification. | 104 // be called asynchronously as a result of this notification. |
105 virtual void closeWidgetSoon() { } | 105 virtual void closeWidgetSoon() { } |
106 | 106 |
107 // Called to show the widget according to the given policy. | 107 // Called to show the widget according to the given policy. |
108 virtual void show(WebNavigationPolicy) { } | 108 virtual void show(WebNavigationPolicy) { } |
109 | 109 |
110 // Called to block execution of the current thread until the widget is | 110 // Called to block execution of the current thread until the widget is |
111 // closed. | 111 // closed. |
112 virtual void runModal() { } | 112 virtual void runModal() { } |
113 | 113 |
114 // Called to enter/exit fullscreen mode. If enterFullScreen returns true, | |
115 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the | |
116 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is | |
117 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the | |
118 // WebWidget out of fullscreen mode. | |
119 virtual bool enterFullScreen() { return false; } | |
120 virtual void exitFullScreen() { } | |
121 | |
122 // Called to get/set the position of the widget in screen coordinates. | 114 // Called to get/set the position of the widget in screen coordinates. |
123 virtual WebRect windowRect() { return WebRect(); } | 115 virtual WebRect windowRect() { return WebRect(); } |
124 virtual void setWindowRect(const WebRect&) { } | 116 virtual void setWindowRect(const WebRect&) { } |
125 | 117 |
126 // Called when a tooltip should be shown at the current cursor position. | 118 // Called when a tooltip should be shown at the current cursor position. |
127 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } | 119 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } |
128 | 120 |
129 // Called to get the position of the resizer rect in window coordinates. | 121 // Called to get the position of the resizer rect in window coordinates. |
130 virtual WebRect windowResizerRect() { return WebRect(); } | 122 virtual WebRect windowResizerRect() { return WebRect(); } |
131 | 123 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // Request the browser to show the IME for current input type. | 168 // Request the browser to show the IME for current input type. |
177 virtual void showImeIfNeeded() { } | 169 virtual void showImeIfNeeded() { } |
178 | 170 |
179 protected: | 171 protected: |
180 ~WebWidgetClient() { } | 172 ~WebWidgetClient() { } |
181 }; | 173 }; |
182 | 174 |
183 } // namespace blink | 175 } // namespace blink |
184 | 176 |
185 #endif | 177 #endif |
OLD | NEW |