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

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

Issue 1911273002: Don't restart the ImageQualityController timer unless it is already half over. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 // shrink the visible viewport to allow things like the ChromeOS virtual 70 // shrink the visible viewport to allow things like the ChromeOS virtual
71 // keyboard to overlay over content but allow scrolling it into view. 71 // keyboard to overlay over content but allow scrolling it into view.
72 virtual void resizeVisualViewport(const WebSize&) { } 72 virtual void resizeVisualViewport(const WebSize&) { }
73 73
74 // Called to notify the WebWidget of entering/exiting fullscreen mode. 74 // Called to notify the WebWidget of entering/exiting fullscreen mode.
75 virtual void didEnterFullScreen() { } 75 virtual void didEnterFullScreen() { }
76 virtual void didExitFullScreen() { } 76 virtual void didExitFullScreen() { }
77 77
78 // Called to update imperative animation state. This should be called before 78 // Called to update imperative animation state. This should be called before
79 // paint, although the client can rate-limit these calls. 79 // paint, although the client can rate-limit these calls.
80 // |lastFrameTimeMonotonic| is in seconds.
80 virtual void beginFrame(double lastFrameTimeMonotonic) { } 81 virtual void beginFrame(double lastFrameTimeMonotonic) { }
81 82
82 // Called to run through the entire set of document lifecycle phases needed 83 // Called to run through the entire set of document lifecycle phases needed
83 // to render a frame of the web widget. This MUST be called before Paint, 84 // to render a frame of the web widget. This MUST be called before Paint,
84 // and it may result in calls to WebWidgetClient::didInvalidateRect. 85 // and it may result in calls to WebWidgetClient::didInvalidateRect.
85 virtual void updateAllLifecyclePhases() { } 86 virtual void updateAllLifecyclePhases() { }
86 87
87 // Called to paint the rectangular region within the WebWidget 88 // Called to paint the rectangular region within the WebWidget
88 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call 89 // onto the specified canvas at (viewPort.x,viewPort.y). You MUST call
89 // Layout before calling this method. It is okay to call paint 90 // Layout before calling this method. It is okay to call paint
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // control what are valid states for top controls and if it should animate. 245 // control what are valid states for top controls and if it should animate.
245 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 246 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
246 247
247 protected: 248 protected:
248 ~WebWidget() { } 249 ~WebWidget() { }
249 }; 250 };
250 251
251 } // namespace blink 252 } // namespace blink
252 253
253 #endif 254 #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