Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: public/web/WebWidget.h

Issue 513723003: Add pixel readback to page popup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added WebPagePopup::positionRelativeToOwner Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebPagePopup.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
258 protected: 265 protected:
259 ~WebWidget() { } 266 ~WebWidget() { }
260 }; 267 };
261 268
262 } // namespace blink 269 } // namespace blink
263 270
264 #endif 271 #endif
OLDNEW
« no previous file with comments | « public/web/WebPagePopup.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698