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

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

Issue 289873002: Remove isCompositorFramePending plumbing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Expectations for virtual suite Created 6 years, 7 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
109 // Called when the widget acquires or loses focus, respectively. 104 // Called when the widget acquires or loses focus, respectively.
110 virtual void didFocus() { } 105 virtual void didFocus() { }
111 virtual void didBlur() { } 106 virtual void didBlur() { }
112 107
113 // Called when the cursor for the widget changes. 108 // Called when the cursor for the widget changes.
114 virtual void didChangeCursor(const WebCursorInfo&) { } 109 virtual void didChangeCursor(const WebCursorInfo&) { }
115 110
116 // Called when the widget should be closed. WebWidget::close() should 111 // Called when the widget should be closed. WebWidget::close() should
117 // be called asynchronously as a result of this notification. 112 // be called asynchronously as a result of this notification.
118 virtual void closeWidgetSoon() { } 113 virtual void closeWidgetSoon() { }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 // modified by script, not by user input. 181 // modified by script, not by user input.
187 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 182 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
188 183
189 protected: 184 protected:
190 ~WebWidgetClient() { } 185 ~WebWidgetClient() { }
191 }; 186 };
192 187
193 } // namespace blink 188 } // namespace blink
194 189
195 #endif 190 #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