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

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: 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
« public/web/WebPagePopup.h ('K') | « 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« public/web/WebPagePopup.h ('K') | « public/web/WebPagePopup.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698