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

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

Issue 2605193002: Fix mouse wheel over-scrolls when display is scaled and scroll is paginated (Closed)
Patch Set: Created 3 years, 11 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 // WebWidgetClient overrides. 264 // WebWidgetClient overrides.
265 void closeWidgetSoon() override {} 265 void closeWidgetSoon() override {}
266 void convertViewportToWindow(WebRect* rect) override {} 266 void convertViewportToWindow(WebRect* rect) override {}
267 void convertWindowToViewport(WebFloatRect* rect) override {} 267 void convertWindowToViewport(WebFloatRect* rect) override {}
268 void didHandleGestureEvent(const WebGestureEvent& event, 268 void didHandleGestureEvent(const WebGestureEvent& event,
269 bool eventCancelled) override {} 269 bool eventCancelled) override {}
270 void didOverscroll(const WebFloatSize& overscrollDelta, 270 void didOverscroll(const WebFloatSize& overscrollDelta,
271 const WebFloatSize& accumulatedOverscroll, 271 const WebFloatSize& accumulatedOverscroll,
272 const WebFloatPoint& positionInViewport, 272 const WebFloatPoint& positionInViewport,
273 const WebFloatSize& velocityInViewport) override {} 273 const WebFloatSize& velocityInViewport) override {}
274 float GetOriginalDeviceScaleFactor() const override { return 1.0f; }
chengx 2017/01/06 23:46:36 Bret: Be careful adding functions to the public in
274 void hasTouchEventHandlers(bool) override {} 275 void hasTouchEventHandlers(bool) override {}
275 void initializeLayerTreeView() override {} 276 void initializeLayerTreeView() override {}
276 void resetInputMethod() override {} 277 void resetInputMethod() override {}
277 WebScreenInfo screenInfo() override { return WebScreenInfo(); } 278 WebScreenInfo screenInfo() override { return WebScreenInfo(); }
278 void setTouchAction(WebTouchAction touchAction) override {} 279 void setTouchAction(WebTouchAction touchAction) override {}
279 void showImeIfNeeded() override {} 280 void showImeIfNeeded() override {}
280 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition, 281 void showUnhandledTapUIIfNeeded(const WebPoint& tappedPosition,
281 const WebNode& tappedNode, 282 const WebNode& tappedNode,
282 bool pageChanged) override {} 283 bool pageChanged) override {}
283 void show(WebNavigationPolicy) override {} 284 void show(WebNavigationPolicy) override {}
284 virtual WebWidgetClient* widgetClient() { return this; } 285 virtual WebWidgetClient* widgetClient() { return this; }
285 286
286 protected: 287 protected:
287 ~WebViewClient() {} 288 ~WebViewClient() {}
288 }; 289 };
289 290
290 } // namespace blink 291 } // namespace blink
291 292
292 #endif 293 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698