Chromium Code Reviews| 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 15 matching lines...) Expand all Loading... | |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebWidget_h | 31 #ifndef WebWidget_h |
| 32 #define WebWidget_h | 32 #define WebWidget_h |
| 33 | 33 |
| 34 #include "../platform/WebCanvas.h" | 34 #include "../platform/WebCanvas.h" |
| 35 #include "../platform/WebCommon.h" | 35 #include "../platform/WebCommon.h" |
| 36 #include "../platform/WebPoint.h" | |
| 36 #include "../platform/WebRect.h" | 37 #include "../platform/WebRect.h" |
| 37 #include "../platform/WebSize.h" | 38 #include "../platform/WebSize.h" |
| 38 #include "WebBeginFrameArgs.h" | 39 #include "WebBeginFrameArgs.h" |
| 39 #include "WebCompositionUnderline.h" | 40 #include "WebCompositionUnderline.h" |
| 40 #include "WebTextDirection.h" | 41 #include "WebTextDirection.h" |
| 41 #include "WebTextInputInfo.h" | 42 #include "WebTextInputInfo.h" |
| 42 | 43 |
| 43 namespace blink { | 44 namespace blink { |
| 44 | 45 |
| 45 class WebCompositeAndReadbackAsyncCallback; | 46 class WebCompositeAndReadbackAsyncCallback; |
| 46 class WebInputEvent; | 47 class WebInputEvent; |
| 47 class WebLayerTreeView; | 48 class WebLayerTreeView; |
| 48 class WebMouseEvent; | 49 class WebMouseEvent; |
| 50 class WebPagePopup; | |
| 49 class WebString; | 51 class WebString; |
| 52 class WebWidgetClient; | |
| 50 struct WebPoint; | 53 struct WebPoint; |
| 51 struct WebRenderingStats; | 54 struct WebRenderingStats; |
| 52 template <typename T> class WebVector; | 55 template <typename T> class WebVector; |
| 53 | 56 |
| 54 class WebWidget { | 57 class WebWidget { |
| 55 public: | 58 public: |
| 56 // This method closes and deletes the WebWidget. | 59 // This method closes and deletes the WebWidget. |
| 57 virtual void close() { } | 60 virtual void close() { } |
| 58 | 61 |
| 59 // Returns the current size of the WebWidget. | 62 // Returns the current size of the WebWidget. |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 // Informs the WebWidget that the resizer rect changed. Happens for example | 251 // Informs the WebWidget that the resizer rect changed. Happens for example |
| 249 // on mac, when a widget appears below the WebWidget without changing the | 252 // on mac, when a widget appears below the WebWidget without changing the |
| 250 // WebWidget's size (WebWidget::resize() automatically checks the resizer | 253 // WebWidget's size (WebWidget::resize() automatically checks the resizer |
| 251 // rect.) | 254 // rect.) |
| 252 virtual void didChangeWindowResizerRect() { } | 255 virtual void didChangeWindowResizerRect() { } |
| 253 | 256 |
| 254 // The page background color. Can be used for filling in areas without | 257 // The page background color. Can be used for filling in areas without |
| 255 // content. | 258 // content. |
| 256 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } | 259 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } |
| 257 | 260 |
| 261 // The currently open page popup, which are calendar and datalist pickers | |
| 262 // but not the select popup. | |
| 263 virtual WebPagePopup* pagePopup() const { return 0; } | |
| 264 | |
| 265 // Returns the client for this widget. | |
| 266 virtual WebWidgetClient* client() const { return 0; } | |
|
tkent
2014/09/12 02:17:49
Why do you need this? An embedder should know who
keishi
2014/09/12 02:27:22
I can get the WebWidgetClient for the main view by
tkent
2014/09/12 03:08:28
I don't know. Don't we have a way to get content:
| |
| 267 | |
| 258 protected: | 268 protected: |
| 259 ~WebWidget() { } | 269 ~WebWidget() { } |
| 260 }; | 270 }; |
| 261 | 271 |
| 262 } // namespace blink | 272 } // namespace blink |
| 263 | 273 |
| 264 #endif | 274 #endif |
| OLD | NEW |