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

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

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/compositor/compositor.h » ('j') | 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; } 127 virtual bool hasTouchEventHandlersAt(const WebPoint&) { return true; }
128 128
129 // Applies viewport related properties during a commit from the compositor 129 // Applies viewport related properties during a commit from the compositor
130 // thread. 130 // thread.
131 virtual void applyViewportDeltas(const WebFloatSize& visualViewportDelta, 131 virtual void applyViewportDeltas(const WebFloatSize& visualViewportDelta,
132 const WebFloatSize& layoutViewportDelta, 132 const WebFloatSize& layoutViewportDelta,
133 const WebFloatSize& elasticOverscrollDelta, 133 const WebFloatSize& elasticOverscrollDelta,
134 float scaleFactor, 134 float scaleFactor,
135 float browserControlsShownRatioDelta) {} 135 float browserControlsShownRatioDelta) {}
136 136
137 virtual void recordWheelAndTouchScrollingCount(bool hasScrolledByWheel,
138 bool hasScrolledByTouch) {}
139
137 // Called to inform the WebWidget that mouse capture was lost. 140 // Called to inform the WebWidget that mouse capture was lost.
138 virtual void mouseCaptureLost() {} 141 virtual void mouseCaptureLost() {}
139 142
140 // Called to inform the WebWidget that it has gained or lost keyboard focus. 143 // Called to inform the WebWidget that it has gained or lost keyboard focus.
141 virtual void setFocus(bool) {} 144 virtual void setFocus(bool) {}
142 145
143 // Fetches the character range of the current composition, also called the 146 // Fetches the character range of the current composition, also called the
144 // "marked range." 147 // "marked range."
145 virtual WebRange compositionRange() { return WebRange(); } 148 virtual WebRange compositionRange() { return WebRange(); }
146 149
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 return false; 221 return false;
219 } 222 }
220 223
221 protected: 224 protected:
222 ~WebWidget() {} 225 ~WebWidget() {}
223 }; 226 };
224 227
225 } // namespace blink 228 } // namespace blink
226 229
227 #endif 230 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698