| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 89 |
| 90 // Called to update imperative animation state. This should be called before | 90 // Called to update imperative animation state. This should be called before |
| 91 // paint, although the client can rate-limit these calls. | 91 // paint, although the client can rate-limit these calls. |
| 92 // FIXME: Remove this function once Chrome side patch lands. | 92 // FIXME: Remove this function once Chrome side patch lands. |
| 93 void animate(double monotonicFrameBeginTime) | 93 void animate(double monotonicFrameBeginTime) |
| 94 { | 94 { |
| 95 beginFrame(WebBeginFrameArgs(monotonicFrameBeginTime)); | 95 beginFrame(WebBeginFrameArgs(monotonicFrameBeginTime)); |
| 96 } | 96 } |
| 97 virtual void beginFrame(const WebBeginFrameArgs& frameTime) { } | 97 virtual void beginFrame(const WebBeginFrameArgs& frameTime) { } |
| 98 | 98 |
| 99 // Called to notify that a previously begun frame was finished and |
| 100 // committed to the compositor. This is used to schedule lower priority |
| 101 // work after tasks such as input processing and painting. |
| 102 virtual void didCommitFrameToCompositor() { } |
| 103 |
| 99 // Called to layout the WebWidget. This MUST be called before Paint, | 104 // Called to layout the WebWidget. This MUST be called before Paint, |
| 100 // and it may result in calls to WebWidgetClient::didInvalidateRect. | 105 // and it may result in calls to WebWidgetClient::didInvalidateRect. |
| 101 virtual void layout() { } | 106 virtual void layout() { } |
| 102 | 107 |
| 103 // Called to paint the rectangular region within the WebWidget | 108 // Called to paint the rectangular region within the WebWidget |
| 104 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call | 109 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call |
| 105 // Layout before calling this method. It is okay to call paint | 110 // Layout before calling this method. It is okay to call paint |
| 106 // multiple times once layout has been called, assuming no other | 111 // multiple times once layout has been called, assuming no other |
| 107 // changes are made to the WebWidget (e.g., once events are | 112 // changes are made to the WebWidget (e.g., once events are |
| 108 // processed, it should be assumed that another call to layout is | 113 // processed, it should be assumed that another call to layout is |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // content. | 254 // content. |
| 250 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } | 255 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI
TE */ } |
| 251 | 256 |
| 252 protected: | 257 protected: |
| 253 ~WebWidget() { } | 258 ~WebWidget() { } |
| 254 }; | 259 }; |
| 255 | 260 |
| 256 } // namespace blink | 261 } // namespace blink |
| 257 | 262 |
| 258 #endif | 263 #endif |
| OLD | NEW |