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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 class WebCompositeAndReadbackAsyncCallback; | 45 class WebCompositeAndReadbackAsyncCallback; |
46 class WebInputEvent; | 46 class WebInputEvent; |
47 class WebLayerTreeView; | 47 class WebLayerTreeView; |
48 class WebMouseEvent; | 48 class WebMouseEvent; |
49 class WebString; | 49 class WebString; |
50 struct WebPoint; | 50 struct WebPoint; |
51 struct WebRenderingStats; | 51 struct WebRenderingStats; |
52 template <typename T> class WebVector; | 52 template <typename T> class WebVector; |
| 53 class WebPagePopup; |
53 | 54 |
54 class WebWidget { | 55 class WebWidget { |
55 public: | 56 public: |
56 // This method closes and deletes the WebWidget. | 57 // This method closes and deletes the WebWidget. |
57 virtual void close() { } | 58 virtual void close() { } |
58 | 59 |
59 // Returns the current size of the WebWidget. | 60 // Returns the current size of the WebWidget. |
60 virtual WebSize size() { return WebSize(); } | 61 virtual WebSize size() { return WebSize(); } |
61 | 62 |
62 // Used to group a series of resize events. For example, if the user | 63 // Used to group a series of resize events. For example, if the user |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 // Informs the WebWidget that the resizer rect changed. Happens for example | 243 // Informs the WebWidget that the resizer rect changed. Happens for example |
243 // on mac, when a widget appears below the WebWidget without changing the | 244 // on mac, when a widget appears below the WebWidget without changing the |
244 // WebWidget's size (WebWidget::resize() automatically checks the resizer | 245 // WebWidget's size (WebWidget::resize() automatically checks the resizer |
245 // rect.) | 246 // rect.) |
246 virtual void didChangeWindowResizerRect() { } | 247 virtual void didChangeWindowResizerRect() { } |
247 | 248 |
248 // The page background color. Can be used for filling in areas without | 249 // The page background color. Can be used for filling in areas without |
249 // content. | 250 // content. |
250 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 251 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
251 | 252 |
| 253 // The currently open popup. |
| 254 virtual WebPagePopup* popup() const { return 0; } |
| 255 |
252 protected: | 256 protected: |
253 ~WebWidget() { } | 257 ~WebWidget() { } |
254 }; | 258 }; |
255 | 259 |
256 } // namespace blink | 260 } // namespace blink |
257 | 261 |
258 #endif | 262 #endif |
OLD | NEW |