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

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

Issue 546693002: Revert 181427 "Reduce hit test on ShowPress by moving hit testin..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « trunk/Source/core/page/EventHandler.cpp ('k') | trunk/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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
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 WebViewImpl_h 31 #ifndef WebViewImpl_h
32 #define WebViewImpl_h 32 #define WebViewImpl_h
33 33
34 #include "core/page/EventWithHitTestResults.h"
35 #include "core/page/PagePopupDriver.h" 34 #include "core/page/PagePopupDriver.h"
36 #include "platform/geometry/IntPoint.h" 35 #include "platform/geometry/IntPoint.h"
37 #include "platform/geometry/IntRect.h" 36 #include "platform/geometry/IntRect.h"
38 #include "platform/graphics/GraphicsLayer.h" 37 #include "platform/graphics/GraphicsLayer.h"
39 #include "public/platform/WebGestureCurveTarget.h" 38 #include "public/platform/WebGestureCurveTarget.h"
40 #include "public/platform/WebLayer.h" 39 #include "public/platform/WebLayer.h"
41 #include "public/platform/WebPoint.h" 40 #include "public/platform/WebPoint.h"
42 #include "public/platform/WebRect.h" 41 #include "public/platform/WebRect.h"
43 #include "public/platform/WebSize.h" 42 #include "public/platform/WebSize.h"
44 #include "public/platform/WebString.h" 43 #include "public/platform/WebString.h"
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 ScrollDirection*, 423 ScrollDirection*,
425 ScrollGranularity*); 424 ScrollGranularity*);
426 425
427 // Called by a full frame plugin inside this view to inform it that its 426 // Called by a full frame plugin inside this view to inform it that its
428 // zoom level has been updated. The plugin should only call this function 427 // zoom level has been updated. The plugin should only call this function
429 // if the zoom change was triggered by the browser, it's only needed in case 428 // if the zoom change was triggered by the browser, it's only needed in case
430 // a plugin can update its own zoom, say because of its own UI. 429 // a plugin can update its own zoom, say because of its own UI.
431 void fullFramePluginZoomLevelChanged(double zoomLevel); 430 void fullFramePluginZoomLevelChanged(double zoomLevel);
432 431
433 void computeScaleAndScrollForBlockRect(const WebPoint& hitPoint, const WebRe ct& blockRect, float padding, float defaultScaleWhenAlreadyLegible, float& scale , WebPoint& scroll); 432 void computeScaleAndScrollForBlockRect(const WebPoint& hitPoint, const WebRe ct& blockRect, float padding, float defaultScaleWhenAlreadyLegible, float& scale , WebPoint& scroll);
434 Node* bestTapNode(const GestureEventWithHitTestResults& targetedTapEvent); 433 Node* bestTapNode(const PlatformGestureEvent& tapEvent);
435 void enableTapHighlightAtPoint(const GestureEventWithHitTestResults& targete dTapEvent); 434 void enableTapHighlightAtPoint(const PlatformGestureEvent& tapEvent);
436 void enableTapHighlights(WillBeHeapVector<RawPtrWillBeMember<Node> >&); 435 void enableTapHighlights(WillBeHeapVector<RawPtrWillBeMember<Node> >&);
437 void computeScaleAndScrollForFocusedNode(Node* focusedNode, float& scale, In tPoint& scroll, bool& needAnimation); 436 void computeScaleAndScrollForFocusedNode(Node* focusedNode, float& scale, In tPoint& scroll, bool& needAnimation);
438 437
439 void animateDoubleTapZoom(const IntPoint&); 438 void animateDoubleTapZoom(const IntPoint&);
440 439
441 void enableFakePageScaleAnimationForTesting(bool); 440 void enableFakePageScaleAnimationForTesting(bool);
442 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; } 441 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo mPending; }
443 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; } 442 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f akePageScaleAnimationTargetPosition; }
444 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; } 443 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS caleAnimationPageScaleFactor; }
445 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; } 444 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc aleAnimationUseAnchor; }
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 bool m_userGestureObserved; 717 bool m_userGestureObserved;
719 }; 718 };
720 719
721 // We have no ways to check if the specified WebView is an instance of 720 // We have no ways to check if the specified WebView is an instance of
722 // WebViewImpl because WebViewImpl is the only implementation of WebView. 721 // WebViewImpl because WebViewImpl is the only implementation of WebView.
723 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 722 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
724 723
725 } // namespace blink 724 } // namespace blink
726 725
727 #endif 726 #endif
OLDNEW
« no previous file with comments | « trunk/Source/core/page/EventHandler.cpp ('k') | trunk/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698