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

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: Code refactoring in RenderView Created 6 years, 5 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 // Check whether the given point hits any registered touch event handlers. 132 // Check whether the given point hits any registered touch event handlers.
133 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 133 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
134 134
135 // Applies a scroll delta to the root layer, which is bundled with a page 135 // Applies a scroll delta to the root layer, which is bundled with a page
136 // scale factor that may apply a CSS transform on the whole document (used 136 // scale factor that may apply a CSS transform on the whole document (used
137 // for mobile-device pinch zooming). This is triggered by events sent to the 137 // for mobile-device pinch zooming). This is triggered by events sent to the
138 // compositor thread. 138 // compositor thread.
139 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or) { } 139 virtual void applyScrollAndScale(const WebSize& scrollDelta, float scaleFact or) { }
140 140
141 // Records draw events for the Performance Timeline.
142 virtual void recordDrawTiming(int64_t RectId, const WebVector<std::pair<int, double> >& draws) { }
143
141 // Called to inform the WebWidget that mouse capture was lost. 144 // Called to inform the WebWidget that mouse capture was lost.
142 virtual void mouseCaptureLost() { } 145 virtual void mouseCaptureLost() { }
143 146
144 // Called to inform the WebWidget that it has gained or lost keyboard focus. 147 // Called to inform the WebWidget that it has gained or lost keyboard focus.
145 virtual void setFocus(bool) { } 148 virtual void setFocus(bool) { }
146 149
147 // Called to inform the WebWidget of a new composition text. 150 // Called to inform the WebWidget of a new composition text.
148 // If selectionStart and selectionEnd has the same value, then it indicates 151 // If selectionStart and selectionEnd has the same value, then it indicates
149 // the input caret position. If the text is empty, then the existing 152 // the input caret position. If the text is empty, then the existing
150 // composition text will be cancelled. 153 // composition text will be cancelled.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // content. 246 // content.
244 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ } 247 virtual WebColor backgroundColor() const { return 0xFFFFFFFF; /* SK_ColorWHI TE */ }
245 248
246 protected: 249 protected:
247 ~WebWidget() { } 250 ~WebWidget() { }
248 }; 251 };
249 252
250 } // namespace blink 253 } // namespace blink
251 254
252 #endif 255 #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