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

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

Issue 908453003: Blink changes to record interest rects for http://w3c.github.io/frame-timing/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Code review comments (and re-sync) Created 5 years, 9 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
« Source/web/WebViewImpl.cpp ('K') | « public/platform/WebLayer.h ('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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 // Applies viewport related properties during a commit from the compositor 155 // Applies viewport related properties during a commit from the compositor
156 // thread. 156 // thread.
157 virtual void applyViewportDeltas( 157 virtual void applyViewportDeltas(
158 const WebFloatSize& pinchViewportDelta, 158 const WebFloatSize& pinchViewportDelta,
159 const WebFloatSize& mainFrameDelta, 159 const WebFloatSize& mainFrameDelta,
160 const WebFloatSize& elasticOverscrollDelta, 160 const WebFloatSize& elasticOverscrollDelta,
161 float scaleFactor, 161 float scaleFactor,
162 float topControlsShownRatioDelta) { } 162 float topControlsShownRatioDelta) { }
163 163
164 enum FrameTimingEventType {
chrishtr 2015/03/27 01:13:03 Add a comment linking to http://w3c.github.io/fram
MikeB 2015/04/14 18:05:46 Done.
165 CompositeEvent,
166 RenderEvent,
167 };
168
169 // Records composite or render events for the Performance Timeline.
170 virtual void recordFrameTimingEvent(FrameTimingEventType eventType, int64_t RectId, const WebVector<std::pair<int, double>>& events) { }
171
164 // Called to inform the WebWidget that mouse capture was lost. 172 // Called to inform the WebWidget that mouse capture was lost.
165 virtual void mouseCaptureLost() { } 173 virtual void mouseCaptureLost() { }
166 174
167 // Called to inform the WebWidget that it has gained or lost keyboard focus. 175 // Called to inform the WebWidget that it has gained or lost keyboard focus.
168 virtual void setFocus(bool) { } 176 virtual void setFocus(bool) { }
169 177
170 // Called to inform the WebWidget of a new composition text. 178 // Called to inform the WebWidget of a new composition text.
171 // If selectionStart and selectionEnd has the same value, then it indicates 179 // If selectionStart and selectionEnd has the same value, then it indicates
172 // the input caret position. If the text is empty, then the existing 180 // the input caret position. If the text is empty, then the existing
173 // composition text will be cancelled. 181 // composition text will be cancelled.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // control what are valid states for top controls and if it should animate. 288 // control what are valid states for top controls and if it should animate.
281 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { } 289 virtual void updateTopControlsState(WebTopControlsState constraints, WebTopC ontrolsState current, bool animate) { }
282 290
283 protected: 291 protected:
284 ~WebWidget() { } 292 ~WebWidget() { }
285 }; 293 };
286 294
287 } // namespace blink 295 } // namespace blink
288 296
289 #endif 297 #endif
OLDNEW
« Source/web/WebViewImpl.cpp ('K') | « public/platform/WebLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698