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

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

Issue 604573002: Eliminate hit test for content detection on GestureTap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update hit test counts Created 6 years, 2 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 | « LayoutTests/fast/events/hit-test-counts-expected.txt ('k') | 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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 WebLocalFrameImpl* mainFrameImpl(); 324 WebLocalFrameImpl* mainFrameImpl();
325 325
326 // FIXME: Temporary method to accommodate out-of-process frame ancestors; 326 // FIXME: Temporary method to accommodate out-of-process frame ancestors;
327 // will be removed when there can be multiple WebWidgets for a single page. 327 // will be removed when there can be multiple WebWidgets for a single page.
328 WebLocalFrameImpl* localFrameRootTemporary() const; 328 WebLocalFrameImpl* localFrameRootTemporary() const;
329 329
330 // Event related methods: 330 // Event related methods:
331 void mouseContextMenu(const WebMouseEvent&); 331 void mouseContextMenu(const WebMouseEvent&);
332 void mouseDoubleClick(const WebMouseEvent&); 332 void mouseDoubleClick(const WebMouseEvent&);
333 333
334 bool detectContentOnTouch(const WebPoint&); 334 bool detectContentOnTouch(const GestureEventWithHitTestResults& targetedEven t);
335 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds); 335 bool startPageScaleAnimation(const IntPoint& targetPosition, bool useAnchor, float newScale, double durationInSeconds);
336 336
337 void hasTouchEventHandlers(bool); 337 void hasTouchEventHandlers(bool);
338 338
339 // WebGestureCurveTarget implementation for fling. 339 // WebGestureCurveTarget implementation for fling.
340 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit y) OVERRIDE; 340 virtual bool scrollBy(const WebFloatSize& delta, const WebFloatSize& velocit y) OVERRIDE;
341 341
342 // Handles context menu events orignated via the the keyboard. These 342 // Handles context menu events orignated via the the keyboard. These
343 // include the VK_APPS virtual key and the Shift+F10 combine. Code is 343 // include the VK_APPS virtual key and the Shift+F10 combine. Code is
344 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM 344 // based on the Webkit function bool WebView::handleContextMenuEvent(WPARAM
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 float m_topControlsContentOffset; 737 float m_topControlsContentOffset;
738 }; 738 };
739 739
740 // We have no ways to check if the specified WebView is an instance of 740 // We have no ways to check if the specified WebView is an instance of
741 // WebViewImpl because WebViewImpl is the only implementation of WebView. 741 // WebViewImpl because WebViewImpl is the only implementation of WebView.
742 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); 742 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true);
743 743
744 } // namespace blink 744 } // namespace blink
745 745
746 #endif 746 #endif
OLDNEW
« no previous file with comments | « LayoutTests/fast/events/hit-test-counts-expected.txt ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698