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

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

Issue 390193003: [not for review] Add Draw entries to window Performance Timeline (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Git pull syncup Created 6 years, 3 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 | « 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Check whether the given point hits any registered touch event handlers. 143 // Check whether the given point hits any registered touch event handlers.
144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 144 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
145 145
146 // Applies viewport related properties during a commit from the compositor 146 // Applies viewport related properties during a commit from the compositor
147 // thread. 147 // thread.
148 virtual void applyViewportDeltas( 148 virtual void applyViewportDeltas(
149 const WebSize& scrollDelta, 149 const WebSize& scrollDelta,
150 float scaleFactor, 150 float scaleFactor,
151 float topControlsDelta) { } 151 float topControlsDelta) { }
152 152
153 enum smoothnessTimingEventType {
154 CommitEvent,
155 CompositeEvent,
156 };
157
158 // Records composite or commit events for the Performance Timeline.
159 virtual void recordSmoothnessTimingEvent(smoothnessTimingEventType eventType , int64_t RectId, const WebVector<std::pair<int, double> >& events) { }
160
153 // Called to inform the WebWidget that mouse capture was lost. 161 // Called to inform the WebWidget that mouse capture was lost.
154 virtual void mouseCaptureLost() { } 162 virtual void mouseCaptureLost() { }
155 163
156 // Called to inform the WebWidget that it has gained or lost keyboard focus. 164 // Called to inform the WebWidget that it has gained or lost keyboard focus.
157 virtual void setFocus(bool) { } 165 virtual void setFocus(bool) { }
158 166
159 // Called to inform the WebWidget of a new composition text. 167 // Called to inform the WebWidget of a new composition text.
160 // If selectionStart and selectionEnd has the same value, then it indicates 168 // If selectionStart and selectionEnd has the same value, then it indicates
161 // the input caret position. If the text is empty, then the existing 169 // the input caret position. If the text is empty, then the existing
162 // composition text will be cancelled. 170 // composition text will be cancelled.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // content. 263 // content.
256 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 264 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
257 265
258 protected: 266 protected:
259 ~WebWidget() { } 267 ~WebWidget() { }
260 }; 268 };
261 269
262 } // namespace blink 270 } // namespace blink
263 271
264 #endif 272 #endif
OLDNEW
« no previous file with comments | « public/platform/WebLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698