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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 114 // Called to enter/exit fullscreen mode. If enterFullScreen returns true, |
115 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the | 115 // then WebWidget::{will,Did}EnterFullScreen should bound resizing the |
116 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is | 116 // WebWidget into fullscreen mode. Similarly, when exitFullScreen is |
117 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the | 117 // called, WebWidget::{will,Did}ExitFullScreen should bound resizing the |
118 // WebWidget out of fullscreen mode. | 118 // WebWidget out of fullscreen mode. |
119 virtual bool enterFullScreen() { return false; } | 119 virtual bool enterFullScreen(bool isVideo) { return false; } |
120 virtual void exitFullScreen() { } | 120 virtual void exitFullScreen(bool isVideo) { } |
121 | 121 |
122 // Called to get/set the position of the widget in screen coordinates. | 122 // Called to get/set the position of the widget in screen coordinates. |
123 virtual WebRect windowRect() { return WebRect(); } | 123 virtual WebRect windowRect() { return WebRect(); } |
124 virtual void setWindowRect(const WebRect&) { } | 124 virtual void setWindowRect(const WebRect&) { } |
125 | 125 |
126 // Called when a tooltip should be shown at the current cursor position. | 126 // Called when a tooltip should be shown at the current cursor position. |
127 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } | 127 virtual void setToolTipText(const WebString&, WebTextDirection hint) { } |
128 | 128 |
129 // Called to get the position of the resizer rect in window coordinates. | 129 // Called to get the position of the resizer rect in window coordinates. |
130 virtual WebRect windowResizerRect() { return WebRect(); } | 130 virtual WebRect windowResizerRect() { return WebRect(); } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 // Request the browser to show the IME for current input type. | 176 // Request the browser to show the IME for current input type. |
177 virtual void showImeIfNeeded() { } | 177 virtual void showImeIfNeeded() { } |
178 | 178 |
179 protected: | 179 protected: |
180 ~WebWidgetClient() { } | 180 ~WebWidgetClient() { } |
181 }; | 181 }; |
182 | 182 |
183 } // namespace blink | 183 } // namespace blink |
184 | 184 |
185 #endif | 185 #endif |
OLD | NEW |