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

Side by Side Diff: Source/web/WebViewImpl.h

Issue 139493003: Early terminate flings when scrolling impossible (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Split up patch accordingly Created 6 years, 9 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 | « no previous file | Source/web/WebViewImpl.cpp » ('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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 void mouseContextMenu(const WebMouseEvent&); 358 void mouseContextMenu(const WebMouseEvent&);
359 void mouseDoubleClick(const WebMouseEvent&); 359 void mouseDoubleClick(const WebMouseEvent&);
360 360
361 bool detectContentOnTouch(const WebPoint&); 361 bool detectContentOnTouch(const WebPoint&);
362 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds); 362 bool startPageScaleAnimation(const WebCore::IntPoint& targetPosition, bool u seAnchor, float newScale, double durationInSeconds);
363 363
364 void numberOfWheelEventHandlersChanged(unsigned); 364 void numberOfWheelEventHandlersChanged(unsigned);
365 void hasTouchEventHandlers(bool); 365 void hasTouchEventHandlers(bool);
366 366
367 // WebGestureCurveTarget implementation for fling. 367 // WebGestureCurveTarget implementation for fling.
368 virtual void scrollBy(const WebFloatSize&) OVERRIDE; 368 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit y) OVERRIDE;
369 virtual void scrollBy(const WebFloatSize& delta) OVERRIDE;
369 370
370 // Handles context menu events orignated via the the keyboard. These 371 // Handles context menu events orignated via the the keyboard. These
371 // include the VK_APPS virtual key and the Shift+F10 combine. Code is 372 // include the VK_APPS virtual key and the Shift+F10 combine. Code is
372 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM 373 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM
373 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only 374 // wParam, LPARAM lParam) in webkit\webkit\win\WebView.cpp. The only
374 // significant change in this function is the code to convert from a 375 // significant change in this function is the code to convert from a
375 // Keyboard event to the Right Mouse button down event. 376 // Keyboard event to the Right Mouse button down event.
376 bool sendContextMenuEvent(const WebKeyboardEvent&); 377 bool sendContextMenuEvent(const WebKeyboardEvent&);
377 378
378 // Notifies the WebView that a load has been committed. isNewNavigation 379 // Notifies the WebView that a load has been committed. isNewNavigation
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 float m_zoomFactorOverride; 771 float m_zoomFactorOverride;
771 }; 772 };
772 773
773 // We have no ways to check if the specified WebView is an instance of 774 // We have no ways to check if the specified WebView is an instance of
774 // WebViewImpl because WebViewImpl is the only implementation of WebView. 775 // WebViewImpl because WebViewImpl is the only implementation of WebView.
775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 776 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
776 777
777 } // namespace blink 778 } // namespace blink
778 779
779 #endif 780 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698