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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // did{Enter,Exit}FullScreen. | 85 // did{Enter,Exit}FullScreen. |
86 virtual void willEnterFullScreen() { } | 86 virtual void willEnterFullScreen() { } |
87 virtual void didEnterFullScreen() { } | 87 virtual void didEnterFullScreen() { } |
88 virtual void willExitFullScreen() { } | 88 virtual void willExitFullScreen() { } |
89 virtual void didExitFullScreen() { } | 89 virtual void didExitFullScreen() { } |
90 | 90 |
91 // Called to update imperative animation state. This should be called before | 91 // Called to update imperative animation state. This should be called before |
92 // paint, although the client can rate-limit these calls. | 92 // paint, although the client can rate-limit these calls. |
93 virtual void beginFrame(const WebBeginFrameArgs& frameTime) { } | 93 virtual void beginFrame(const WebBeginFrameArgs& frameTime) { } |
94 | 94 |
| 95 // Called when the Widget contents has changed in such a way the layout must
be |
| 96 // redone, and any resulting paint invalidations issued. |
| 97 virtual void setNeedsLayoutAndFullPaintInvalidation() { } |
| 98 |
95 // Called to layout the WebWidget. This MUST be called before Paint, | 99 // Called to layout the WebWidget. This MUST be called before Paint, |
96 // and it may result in calls to WebWidgetClient::didInvalidateRect. | 100 // and it may result in calls to WebWidgetClient::didInvalidateRect. |
97 virtual void layout() { } | 101 virtual void layout() { } |
98 | 102 |
99 // Called to paint the rectangular region within the WebWidget | 103 // Called to paint the rectangular region within the WebWidget |
100 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call | 104 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call |
101 // Layout before calling this method. It is okay to call paint | 105 // Layout before calling this method. It is okay to call paint |
102 // multiple times once layout has been called, assuming no other | 106 // multiple times once layout has been called, assuming no other |
103 // changes are made to the WebWidget (e.g., once events are | 107 // changes are made to the WebWidget (e.g., once events are |
104 // processed, it should be assumed that another call to layout is | 108 // processed, it should be assumed that another call to layout is |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // control what are valid states for top controls and if it should animate. | 273 // control what are valid states for top controls and if it should animate. |
270 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } | 274 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC
ontrolsState current, bool animate) { } |
271 | 275 |
272 protected: | 276 protected: |
273 ~WebWidget() { } | 277 ~WebWidget() { } |
274 }; | 278 }; |
275 | 279 |
276 } // namespace blink | 280 } // namespace blink |
277 | 281 |
278 #endif | 282 #endif |
OLD | NEW |