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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // warranted before painting again). | 118 // warranted before painting again). |
119 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb
ackFromCompositorIfAvailable) { } | 119 virtual void paint(WebCanvas*, const WebRect& viewPort, PaintOptions = Readb
ackFromCompositorIfAvailable) { } |
120 | 120 |
121 // Returns true if we've started tracking repaint rectangles. | 121 // Returns true if we've started tracking repaint rectangles. |
122 virtual bool isTrackingRepaints() const { return false; } | 122 virtual bool isTrackingRepaints() const { return false; } |
123 | 123 |
124 // Indicates that the compositing surface associated with this WebWidget is | 124 // Indicates that the compositing surface associated with this WebWidget is |
125 // ready to use. | 125 // ready to use. |
126 virtual void setCompositorSurfaceReady() { } | 126 virtual void setCompositorSurfaceReady() { } |
127 | 127 |
128 // Temporary method for the embedder to notify the WebWidget that the widget | |
129 // has taken damage, e.g. due to a window expose. This method will be | |
130 // removed when the WebWidget inversion patch lands --- http://crbug.com/112
837 | |
131 virtual void setNeedsRedraw() { } | |
132 | |
133 // Called to inform the WebWidget of a change in theme. | 128 // Called to inform the WebWidget of a change in theme. |
134 // Implementors that cache rendered copies of widgets need to re-render | 129 // Implementors that cache rendered copies of widgets need to re-render |
135 // on receiving this message | 130 // on receiving this message |
136 virtual void themeChanged() { } | 131 virtual void themeChanged() { } |
137 | 132 |
138 // Called to inform the WebWidget of an input event. Returns true if | 133 // Called to inform the WebWidget of an input event. Returns true if |
139 // the event has been processed, false otherwise. | 134 // the event has been processed, false otherwise. |
140 virtual bool handleInputEvent(const WebInputEvent&) { return false; } | 135 virtual bool handleInputEvent(const WebInputEvent&) { return false; } |
141 | 136 |
142 // Called to inform the WebWidget of the mouse cursor's visibility. | 137 // Called to inform the WebWidget of the mouse cursor's visibility. |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 // content. | 253 // content. |
259 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 254 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
260 | 255 |
261 protected: | 256 protected: |
262 ~WebWidget() { } | 257 ~WebWidget() { } |
263 }; | 258 }; |
264 | 259 |
265 } // namespace blink | 260 } // namespace blink |
266 | 261 |
267 #endif | 262 #endif |
OLD | NEW |