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

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

Issue 1056983004: OverscrollGlow for mainThread-{BLINK CHANGES} (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 5 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
« Source/web/WebViewImpl.cpp ('K') | « 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // including when a lock is pending but not yet acquired. 145 // including when a lock is pending but not yet acquired.
146 // WebWidget::didLosePointerLock() is called when unlock is complete. 146 // WebWidget::didLosePointerLock() is called when unlock is complete.
147 virtual void requestPointerUnlock() { } 147 virtual void requestPointerUnlock() { }
148 148
149 // Returns true iff the pointer is locked to this widget. 149 // Returns true iff the pointer is locked to this widget.
150 virtual bool isPointerLocked() { return false; } 150 virtual bool isPointerLocked() { return false; }
151 151
152 // Called when a gesture event is handled. 152 // Called when a gesture event is handled.
153 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { } 153 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { }
154 154
155 // Called when overscrolled on main thread.
156 virtual void didOverScrollOnMainThread(const float& unusedDeltaX, const floa t& unusedDeltaY, const float& accumaltedRootOverScrollX, const float& accumalted RootOverScrollY, const float& positionX, const float& positionY, const float& ve locityX, const float& velocityY) { }
157
155 // Called to update if touch events should be sent. 158 // Called to update if touch events should be sent.
156 virtual void hasTouchEventHandlers(bool) { } 159 virtual void hasTouchEventHandlers(bool) { }
157 160
158 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder 161 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder
159 // of the touch actions that are permitted for this touch. 162 // of the touch actions that are permitted for this touch.
160 virtual void setTouchAction(WebTouchAction touchAction) { } 163 virtual void setTouchAction(WebTouchAction touchAction) { }
161 164
162 // Called when value of focused text field gets dirty, e.g. value is 165 // Called when value of focused text field gets dirty, e.g. value is
163 // modified by script, not by user input. 166 // modified by script, not by user input.
164 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 167 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
(...skipping 15 matching lines...) Expand all
180 // something as a result of a tap without explicitly consuming the event. 183 // something as a result of a tap without explicitly consuming the event.
181 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, 184 virtual void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition,
182 const WebNode& tappedNode, bool pageChanged) { } 185 const WebNode& tappedNode, bool pageChanged) { }
183 protected: 186 protected:
184 ~WebWidgetClient() { } 187 ~WebWidgetClient() { }
185 }; 188 };
186 189
187 } // namespace blink 190 } // namespace blink
188 191
189 #endif 192 #endif
OLDNEW
« Source/web/WebViewImpl.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698