OLD | NEW |
---|---|
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
524 // Returns the bounding box of the block type node touched by the WebRect. | 524 // Returns the bounding box of the block type node touched by the WebRect. |
525 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); | 525 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); |
526 | 526 |
527 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float scale); | 527 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float scale); |
528 | 528 |
529 // Exposed for tests. | 529 // Exposed for tests. |
530 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 530 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
531 | 531 |
532 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 532 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
533 | 533 |
534 bool isPinchZoomable() const; | |
535 | |
534 private: | 536 private: |
535 float legibleScale() const; | 537 float legibleScale() const; |
536 void refreshPageScaleFactorAfterLayout(); | 538 void refreshPageScaleFactorAfterLayout(); |
537 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst raints); | 539 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst raints); |
538 float clampPageScaleFactorToLimits(float) const; | 540 float clampPageScaleFactorToLimits(float) const; |
539 WebCore::IntSize contentsSize() const; | 541 WebCore::IntSize contentsSize() const; |
540 | 542 |
541 void resetSavedScrollAndScaleState(); | 543 void resetSavedScrollAndScaleState(); |
542 | 544 |
543 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition, bool programmaticScroll); | 545 void updateMainFrameScrollPosition(const WebCore::IntPoint& scrollPosition, bool programmaticScroll); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
606 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; | 608 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; |
607 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; | 609 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; |
608 | 610 |
609 friend class WebHelperPluginImpl; | 611 friend class WebHelperPluginImpl; |
610 // Take ownership of the Helper Plugin and destroy it asynchronously. | 612 // Take ownership of the Helper Plugin and destroy it asynchronously. |
611 // Called by WebHelperPluginImpl::closeAndDeleteSoon() to ensure the Helper | 613 // Called by WebHelperPluginImpl::closeAndDeleteSoon() to ensure the Helper |
612 // Plugin is closed at the correct time. | 614 // Plugin is closed at the correct time. |
613 void closeAndDeleteHelperPluginSoon(WebHelperPluginImpl*); | 615 void closeAndDeleteHelperPluginSoon(WebHelperPluginImpl*); |
614 void closePendingHelperPlugins(WebCore::Timer<WebViewImpl>*); | 616 void closePendingHelperPlugins(WebCore::Timer<WebViewImpl>*); |
615 | 617 |
618 bool shouldGestureTapDownTriggerActive(const WebCore::PlatformGestureEvent&) ; | |
Rick Byers
2014/02/21 03:35:52
Since this is no longer just about 'triggering act
Zeeshan Qureshi
2014/02/24 03:14:26
earlyGestureShowPress sounds good. I was using sho
| |
619 | |
616 WebCore::InputMethodContext* inputMethodContext(); | 620 WebCore::InputMethodContext* inputMethodContext(); |
617 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::Frame*); | 621 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::Frame*); |
618 | 622 |
619 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 623 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
620 WebAutofillClient* m_autofillClient; | 624 WebAutofillClient* m_autofillClient; |
621 WebSpellCheckClient* m_spellCheckClient; | 625 WebSpellCheckClient* m_spellCheckClient; |
622 WebPasswordGeneratorClient* m_passwordGeneratorClient; | 626 WebPasswordGeneratorClient* m_passwordGeneratorClient; |
623 | 627 |
624 ChromeClientImpl m_chromeClientImpl; | 628 ChromeClientImpl m_chromeClientImpl; |
625 ContextMenuClientImpl m_contextMenuClientImpl; | 629 ContextMenuClientImpl m_contextMenuClientImpl; |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
776 bool m_showPaintRects; | 780 bool m_showPaintRects; |
777 bool m_showDebugBorders; | 781 bool m_showDebugBorders; |
778 bool m_continuousPaintingEnabled; | 782 bool m_continuousPaintingEnabled; |
779 bool m_showScrollBottleneckRects; | 783 bool m_showScrollBottleneckRects; |
780 WebColor m_baseBackgroundColor; | 784 WebColor m_baseBackgroundColor; |
781 WebColor m_backgroundColorOverride; | 785 WebColor m_backgroundColorOverride; |
782 float m_zoomFactorOverride; | 786 float m_zoomFactorOverride; |
783 | 787 |
784 WebCore::Timer<WebViewImpl> m_helperPluginCloseTimer; | 788 WebCore::Timer<WebViewImpl> m_helperPluginCloseTimer; |
785 Vector<WebHelperPluginImpl*> m_helperPluginsPendingClose; | 789 Vector<WebHelperPluginImpl*> m_helperPluginsPendingClose; |
790 | |
791 bool m_gestureTapDownTriggeredActive; | |
Rick Byers
2014/02/21 03:35:52
maybe m_sentEarlyShowPress?
| |
786 }; | 792 }; |
787 | 793 |
788 // We have no ways to check if the specified WebView is an instance of | 794 // We have no ways to check if the specified WebView is an instance of |
789 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 795 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
790 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 796 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
791 | 797 |
792 } // namespace blink | 798 } // namespace blink |
793 | 799 |
794 #endif | 800 #endif |
OLD | NEW |