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

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

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: needs more work Created 3 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
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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebViewClient_h 31 #ifndef WebViewClient_h
32 #define WebViewClient_h 32 #define WebViewClient_h
33 33
34 #include "../platform/WebPageVisibilityState.h" 34 #include "../platform/WebPageVisibilityState.h"
35 #include "../platform/WebString.h" 35 #include "../platform/WebString.h"
36 #if BLINK_IMPLEMENTATION
37 #include "platform/graphics/TouchAction.h"
38 #endif
36 #include "WebAXEnums.h" 39 #include "WebAXEnums.h"
37 #include "WebFrame.h" 40 #include "WebFrame.h"
38 #include "WebPopupType.h" 41 #include "WebPopupType.h"
39 #include "WebTextDirection.h" 42 #include "WebTextDirection.h"
40 #include "WebWidgetClient.h" 43 #include "WebWidgetClient.h"
41 44
42 namespace blink { 45 namespace blink {
43 46
44 class WebDateTimeChooserCompletion; 47 class WebDateTimeChooserCompletion;
45 class WebFileChooserCompletion; 48 class WebFileChooserCompletion;
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 void ConvertWindowToViewport(WebFloatRect* rect) override {} 248 void ConvertWindowToViewport(WebFloatRect* rect) override {}
246 void DidHandleGestureEvent(const WebGestureEvent& event, 249 void DidHandleGestureEvent(const WebGestureEvent& event,
247 bool event_cancelled) override {} 250 bool event_cancelled) override {}
248 void DidOverscroll(const WebFloatSize& overscroll_delta, 251 void DidOverscroll(const WebFloatSize& overscroll_delta,
249 const WebFloatSize& accumulated_overscroll, 252 const WebFloatSize& accumulated_overscroll,
250 const WebFloatPoint& position_in_viewport, 253 const WebFloatPoint& position_in_viewport,
251 const WebFloatSize& velocity_in_viewport) override {} 254 const WebFloatSize& velocity_in_viewport) override {}
252 void HasTouchEventHandlers(bool) override {} 255 void HasTouchEventHandlers(bool) override {}
253 WebLayerTreeView* InitializeLayerTreeView() override { return nullptr; } 256 WebLayerTreeView* InitializeLayerTreeView() override { return nullptr; }
254 WebScreenInfo GetScreenInfo() override { return WebScreenInfo(); } 257 WebScreenInfo GetScreenInfo() override { return WebScreenInfo(); }
255 void SetTouchAction(WebTouchAction touch_action) override {} 258 #if BLINK_IMPLEMENTATION
259 void SetTouchAction(blink::TouchAction touch_action) override {}
260 #endif
256 void ShowUnhandledTapUIIfNeeded(const WebPoint& tapped_position, 261 void ShowUnhandledTapUIIfNeeded(const WebPoint& tapped_position,
257 const WebNode& tapped_node, 262 const WebNode& tapped_node,
258 bool page_changed) override {} 263 bool page_changed) override {}
259 void Show(WebNavigationPolicy) override {} 264 void Show(WebNavigationPolicy) override {}
260 virtual WebWidgetClient* WidgetClient() { return this; } 265 virtual WebWidgetClient* WidgetClient() { return this; }
261 266
262 protected: 267 protected:
263 }; 268 };
264 269
265 } // namespace blink 270 } // namespace blink
266 271
267 #endif 272 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698