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

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

Issue 2791223002: Notify Blink to suppress frame requests during BeginMainFrame (Closed)
Patch Set: DCHECK update 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
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return false; 224 return false;
222 } 225 }
223 226
224 protected: 227 protected:
225 ~WebWidget() {} 228 ~WebWidget() {}
226 }; 229 };
227 230
228 } // namespace blink 231 } // namespace blink
229 232
230 #endif 233 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698