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

Side by Side Diff: public/web/WebWidgetClient.h

Issue 139103009: If a compositing update is declared as needed, scheduleAnimation should be triggered. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: patch for landing, added crbug to fixme comment Created 6 years, 10 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
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // frame have been issued. 94 // frame have been issued.
95 virtual void didCommitAndDrawCompositorFrame() { } 95 virtual void didCommitAndDrawCompositorFrame() { }
96 96
97 // Called for compositing mode when swapbuffers has been posted in the GPU 97 // Called for compositing mode when swapbuffers has been posted in the GPU
98 // process. 98 // process.
99 virtual void didCompleteSwapBuffers() { } 99 virtual void didCompleteSwapBuffers() { }
100 100
101 // Called when a call to WebWidget::animate is required 101 // Called when a call to WebWidget::animate is required
102 virtual void scheduleAnimation() { } 102 virtual void scheduleAnimation() { }
103 103
104 // Called to query the state of the rendering back-end. Should return true
105 // when scheduleAnimation (or possibly some other cause for another frame)
106 // was called, but before WebWidget::animate actually does a frame.
107 virtual bool isCompositorFramePending() const { return false; }
108
104 // Called when the widget acquires or loses focus, respectively. 109 // Called when the widget acquires or loses focus, respectively.
105 virtual void didFocus() { } 110 virtual void didFocus() { }
106 virtual void didBlur() { } 111 virtual void didBlur() { }
107 112
108 // Called when the cursor for the widget changes. 113 // Called when the cursor for the widget changes.
109 virtual void didChangeCursor(const WebCursorInfo&) { } 114 virtual void didChangeCursor(const WebCursorInfo&) { }
110 115
111 // Called when the widget should be closed. WebWidget::close() should 116 // Called when the widget should be closed. WebWidget::close() should
112 // be called asynchronously as a result of this notification. 117 // be called asynchronously as a result of this notification.
113 virtual void closeWidgetSoon() { } 118 virtual void closeWidgetSoon() { }
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // of the touch actions that are permitted for this touch. 182 // of the touch actions that are permitted for this touch.
178 virtual void setTouchAction(WebTouchAction touchAction) { } 183 virtual void setTouchAction(WebTouchAction touchAction) { }
179 184
180 protected: 185 protected:
181 ~WebWidgetClient() { } 186 ~WebWidgetClient() { }
182 }; 187 };
183 188
184 } // namespace blink 189 } // namespace blink
185 190
186 #endif 191 #endif
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698