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

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

Issue 1174273005: Remove unnecessary WebWidgetClient compositor methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 virtual WebLayerTreeView* layerTreeView() { return 0; } 67 virtual WebLayerTreeView* layerTreeView() { return 0; }
68 // FIXME: Remove all overrides of this and change layerTreeView() above to A SSERT_NOT_REACHED. 68 // FIXME: Remove all overrides of this and change layerTreeView() above to A SSERT_NOT_REACHED.
69 virtual bool allowsBrokenNullLayerTreeView() const { return false; } 69 virtual bool allowsBrokenNullLayerTreeView() const { return false; }
70 70
71 // Sometimes the WebWidget enters a state where it will generate a sequence 71 // Sometimes the WebWidget enters a state where it will generate a sequence
72 // of invalidations that should not, by themselves, trigger the compositor 72 // of invalidations that should not, by themselves, trigger the compositor
73 // to schedule a new frame. This call indicates to the embedder that it 73 // to schedule a new frame. This call indicates to the embedder that it
74 // should suppress compositor scheduling temporarily. 74 // should suppress compositor scheduling temporarily.
75 virtual void suppressCompositorScheduling(bool enable) { } 75 virtual void suppressCompositorScheduling(bool enable) { }
76 76
77 // Indicates to the embedder that the compositor is about to begin a
78 // frame. This is primarily to signal to flow control mechanisms that a
79 // frame is beginning, not to perform actual painting work.
80 virtual void willBeginCompositorFrame() { }
81
82 // Indicates to the embedder that the WebWidget is ready for additional
83 // input.
84 virtual void didBecomeReadyForAdditionalInput() { }
85
86 // Called for compositing mode when a frame commit operation has finished.
87 virtual void didCommitCompositorFrame() { }
88
89 // Called for compositing mode when the draw commands for a WebKit-side
90 // frame have been issued.
91 virtual void didCommitAndDrawCompositorFrame() { }
92
93 // Called for compositing mode when swapbuffers has been posted in the GPU
94 // process.
95 virtual void didCompleteSwapBuffers() { }
96
97 // Called when a call to WebWidget::animate is required 77 // Called when a call to WebWidget::animate is required
98 virtual void scheduleAnimation() { } 78 virtual void scheduleAnimation() { }
99 79
100 // Called when the widget acquires or loses focus, respectively. 80 // Called when the widget acquires or loses focus, respectively.
101 virtual void didFocus() { } 81 virtual void didFocus() { }
102 virtual void didBlur() { } 82 virtual void didBlur() { }
103 83
104 // Called when the cursor for the widget changes. 84 // Called when the cursor for the widget changes.
105 virtual void didChangeCursor(const WebCursorInfo&) { } 85 virtual void didChangeCursor(const WebCursorInfo&) { }
106 86
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // something as a result of a tap without explicitly consuming the event. 165 // something as a result of a tap without explicitly consuming the event.
186 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, 166 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition,
187 const WebNode& tappedNode, bool pageChanged) { } 167 const WebNode& tappedNode, bool pageChanged) { }
188 protected: 168 protected:
189 ~WebWidgetClient() { } 169 ~WebWidgetClient() { }
190 }; 170 };
191 171
192 } // namespace blink 172 } // namespace blink
193 173
194 #endif 174 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698