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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // Called to notify the WebWidget of entering/exiting fullscreen mode. The | 73 // Called to notify the WebWidget of entering/exiting fullscreen mode. The |
74 // resize method may be called between will{Enter,Exit}FullScreen and | 74 // resize method may be called between will{Enter,Exit}FullScreen and |
75 // did{Enter,Exit}FullScreen. | 75 // did{Enter,Exit}FullScreen. |
76 virtual void willEnterFullScreen() { } | 76 virtual void willEnterFullScreen() { } |
77 virtual void didEnterFullScreen() { } | 77 virtual void didEnterFullScreen() { } |
78 virtual void willExitFullScreen() { } | 78 virtual void willExitFullScreen() { } |
79 virtual void didExitFullScreen() { } | 79 virtual void didExitFullScreen() { } |
80 | 80 |
81 // Called to update imperative animation state. This should be called before | 81 // Called to update imperative animation state. This should be called before |
82 // paint, although the client can rate-limit these calls. When | 82 // paint, although the client can rate-limit these calls. |
83 // frameBeginTime is 0.0, the WebWidget will determine the frame begin time | 83 // |
84 // itself. | 84 // FIXME: remove this function entirely when inversion patches land. |
85 virtual void animate(double frameBeginTime) { } | 85 virtual void animate(double ignored) { } |
86 | 86 |
87 // Called to layout the WebWidget. This MUST be called before Paint, | 87 // Called to layout the WebWidget. This MUST be called before Paint, |
88 // and it may result in calls to WebWidgetClient::didInvalidateRect. | 88 // and it may result in calls to WebWidgetClient::didInvalidateRect. |
89 virtual void layout() { } | 89 virtual void layout() { } |
90 | 90 |
91 // Called to paint the rectangular region within the WebWidget | 91 // Called to paint the rectangular region within the WebWidget |
92 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call | 92 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call |
93 // Layout before calling this method. It is okay to call paint | 93 // Layout before calling this method. It is okay to call paint |
94 // multiple times once layout has been called, assuming no other | 94 // multiple times once layout has been called, assuming no other |
95 // changes are made to the WebWidget (e.g., once events are | 95 // changes are made to the WebWidget (e.g., once events are |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 // following the call to instrumentBeginFrame(). | 208 // following the call to instrumentBeginFrame(). |
209 virtual void instrumentCancelFrame() { } | 209 virtual void instrumentCancelFrame() { } |
210 | 210 |
211 protected: | 211 protected: |
212 ~WebWidget() { } | 212 ~WebWidget() { } |
213 }; | 213 }; |
214 | 214 |
215 } // namespace WebKit | 215 } // namespace WebKit |
216 | 216 |
217 #endif | 217 #endif |
OLD | NEW |