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

Side by Side Diff: third_party/WebKit/public/web/WebWidget.h

Issue 2813543003: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/web/WebViewImpl.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // viewport is the same size as the main frame. The passed size becomes the 69 // viewport is the same size as the main frame. The passed size becomes the
70 // size of the viewport when unscaled (i.e. scale = 1). This is used to 70 // size of the viewport when unscaled (i.e. scale = 1). This is used to
71 // shrink the visible viewport to allow things like the ChromeOS virtual 71 // shrink the visible viewport to allow things like the ChromeOS virtual
72 // keyboard to overlay over content but allow scrolling it into view. 72 // keyboard to overlay over content but allow scrolling it into view.
73 virtual void resizeVisualViewport(const WebSize&) {} 73 virtual void resizeVisualViewport(const WebSize&) {}
74 74
75 // Called to notify the WebWidget of entering/exiting fullscreen mode. 75 // Called to notify the WebWidget of entering/exiting fullscreen mode.
76 virtual void didEnterFullscreen() {} 76 virtual void didEnterFullscreen() {}
77 virtual void didExitFullscreen() {} 77 virtual void didExitFullscreen() {}
78 78
79 // TODO(crbug.com/704763): Remove the need for this.
80 virtual void setSuppressFrameRequestsWorkaroundFor704763Only(bool) {}
81
79 // Called to update imperative animation state. This should be called before 82 // Called to update imperative animation state. This should be called before
80 // paint, although the client can rate-limit these calls. 83 // paint, although the client can rate-limit these calls.
81 // |lastFrameTimeMonotonic| is in seconds. 84 // |lastFrameTimeMonotonic| is in seconds.
82 virtual void beginFrame(double lastFrameTimeMonotonic) {} 85 virtual void beginFrame(double lastFrameTimeMonotonic) {}
83 86
84 // Called to run through the entire set of document lifecycle phases needed 87 // Called to run through the entire set of document lifecycle phases needed
85 // to render a frame of the web widget. This MUST be called before Paint, 88 // to render a frame of the web widget. This MUST be called before Paint,
86 // and it may result in calls to WebWidgetClient::didInvalidateRect. 89 // and it may result in calls to WebWidgetClient::didInvalidateRect.
87 virtual void updateAllLifecyclePhases() {} 90 virtual void updateAllLifecyclePhases() {}
88 91
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 return false; 221 return false;
219 } 222 }
220 223
221 protected: 224 protected:
222 ~WebWidget() {} 225 ~WebWidget() {}
223 }; 226 };
224 227
225 } // namespace blink 228 } // namespace blink
226 229
227 #endif 230 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698