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

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

Issue 1055683003: (NOT FOR REVIEW) Distinguish between touch and touchmove handler presence (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix loading Created 5 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
« Source/core/page/ChromeClient.h ('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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 147
148 // Called when a gesture event is handled. 148 // Called when a gesture event is handled.
149 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { } 149 virtual void didHandleGestureEvent(const WebGestureEvent& event, bool eventC ancelled) { }
150 150
151 // Called when overscrolled on main thread. 151 // Called when overscrolled on main thread.
152 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize & velocity) { } 152 virtual void didOverscroll(const WebFloatSize& unusedDelta, const WebFloatSi ze& accumulatedRootOverScroll, const WebFloatPoint& position, const WebFloatSize & velocity) { }
153 153
154 // Called to update if touch events should be sent. 154 // Called to update if touch events should be sent.
155 virtual void hasTouchEventHandlers(bool) { } 155 virtual void hasTouchEventHandlers(bool) { }
156 156
157 // Called to update if touch move events should be sent.
158 virtual void hasTouchMoveEventHandlers(bool) { }
159
157 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder 160 // Called during WebWidget::HandleInputEvent for a TouchStart event to infor m the embedder
158 // of the touch actions that are permitted for this touch. 161 // of the touch actions that are permitted for this touch.
159 virtual void setTouchAction(WebTouchAction touchAction) { } 162 virtual void setTouchAction(WebTouchAction touchAction) { }
160 163
161 // Called when value of focused text field gets dirty, e.g. value is 164 // Called when value of focused text field gets dirty, e.g. value is
162 // modified by script, not by user input. 165 // modified by script, not by user input.
163 virtual void didUpdateTextOfFocusedElementByNonUserInput() { } 166 virtual void didUpdateTextOfFocusedElementByNonUserInput() { }
164 167
165 // Request the browser to show the IME for current input type. 168 // Request the browser to show the IME for current input type.
166 virtual void showImeIfNeeded() { } 169 virtual void showImeIfNeeded() { }
(...skipping 17 matching lines...) Expand all
184 // press or gesture tap. 187 // press or gesture tap.
185 // Note: This is called even when the mouse down event is prevent default. 188 // Note: This is called even when the mouse down event is prevent default.
186 virtual void onMouseDown(const WebNode& mouseDownNode) { } 189 virtual void onMouseDown(const WebNode& mouseDownNode) { }
187 protected: 190 protected:
188 ~WebWidgetClient() { } 191 ~WebWidgetClient() { }
189 }; 192 };
190 193
191 } // namespace blink 194 } // namespace blink
192 195
193 #endif 196 #endif
OLDNEW
« Source/core/page/ChromeClient.h ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698