| 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 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 // Returns the bounding box of the block type node touched by the WebRect. | 520 // Returns the bounding box of the block type node touched by the WebRect. |
| 521 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); | 521 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); |
| 522 | 522 |
| 523 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); | 523 WebCore::IntPoint clampOffsetAtScale(const WebCore::IntPoint& offset, float
scale); |
| 524 | 524 |
| 525 // Exposed for tests. | 525 // Exposed for tests. |
| 526 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 526 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
| 527 | 527 |
| 528 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 528 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 529 | 529 |
| 530 bool isPinchZoomable() const; |
| 531 |
| 530 private: | 532 private: |
| 531 float legibleScale() const; | 533 float legibleScale() const; |
| 532 void refreshPageScaleFactorAfterLayout(); | 534 void refreshPageScaleFactorAfterLayout(); |
| 533 void resumeTreeViewCommits(); | 535 void resumeTreeViewCommits(); |
| 534 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); | 536 void setUserAgentPageScaleConstraints(WebCore::PageScaleConstraints newConst
raints); |
| 535 float clampPageScaleFactorToLimits(float) const; | 537 float clampPageScaleFactorToLimits(float) const; |
| 536 WebCore::IntSize contentsSize() const; | 538 WebCore::IntSize contentsSize() const; |
| 537 | 539 |
| 538 void resetSavedScrollAndScaleState(); | 540 void resetSavedScrollAndScaleState(); |
| 539 | 541 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 | 598 |
| 597 // PageWidgetEventHandler functions | 599 // PageWidgetEventHandler functions |
| 598 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; | 600 virtual void handleMouseLeave(WebCore::LocalFrame&, const WebMouseEvent&) OV
ERRIDE; |
| 599 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; | 601 virtual void handleMouseDown(WebCore::LocalFrame&, const WebMouseEvent&) OVE
RRIDE; |
| 600 virtual void handleMouseUp(WebCore::LocalFrame&, const WebMouseEvent&) OVERR
IDE; | 602 virtual void handleMouseUp(WebCore::LocalFrame&, const WebMouseEvent&) OVERR
IDE; |
| 601 virtual bool handleMouseWheel(WebCore::LocalFrame&, const WebMouseWheelEvent
&) OVERRIDE; | 603 virtual bool handleMouseWheel(WebCore::LocalFrame&, const WebMouseWheelEvent
&) OVERRIDE; |
| 602 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; | 604 virtual bool handleGestureEvent(const WebGestureEvent&) OVERRIDE; |
| 603 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; | 605 virtual bool handleKeyEvent(const WebKeyboardEvent&) OVERRIDE; |
| 604 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; | 606 virtual bool handleCharEvent(const WebKeyboardEvent&) OVERRIDE; |
| 605 | 607 |
| 608 bool earlyGestureShowPress(const WebCore::PlatformGestureEvent&); |
| 609 |
| 606 WebCore::InputMethodContext* inputMethodContext(); | 610 WebCore::InputMethodContext* inputMethodContext(); |
| 607 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::LocalFrame*); | 611 WebPlugin* focusedPluginIfInputMethodSupported(WebCore::LocalFrame*); |
| 608 | 612 |
| 609 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) | 613 WebViewClient* m_client; // Can be 0 (e.g. unittests, shared workers, etc.) |
| 610 WebAutofillClient* m_autofillClient; | 614 WebAutofillClient* m_autofillClient; |
| 611 WebSpellCheckClient* m_spellCheckClient; | 615 WebSpellCheckClient* m_spellCheckClient; |
| 612 WebPasswordGeneratorClient* m_passwordGeneratorClient; | 616 WebPasswordGeneratorClient* m_passwordGeneratorClient; |
| 613 | 617 |
| 614 ChromeClientImpl m_chromeClientImpl; | 618 ChromeClientImpl m_chromeClientImpl; |
| 615 ContextMenuClientImpl m_contextMenuClientImpl; | 619 ContextMenuClientImpl m_contextMenuClientImpl; |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 OwnPtr<FullscreenController> m_fullscreenController; | 768 OwnPtr<FullscreenController> m_fullscreenController; |
| 765 | 769 |
| 766 bool m_showFPSCounter; | 770 bool m_showFPSCounter; |
| 767 bool m_showPaintRects; | 771 bool m_showPaintRects; |
| 768 bool m_showDebugBorders; | 772 bool m_showDebugBorders; |
| 769 bool m_continuousPaintingEnabled; | 773 bool m_continuousPaintingEnabled; |
| 770 bool m_showScrollBottleneckRects; | 774 bool m_showScrollBottleneckRects; |
| 771 WebColor m_baseBackgroundColor; | 775 WebColor m_baseBackgroundColor; |
| 772 WebColor m_backgroundColorOverride; | 776 WebColor m_backgroundColorOverride; |
| 773 float m_zoomFactorOverride; | 777 float m_zoomFactorOverride; |
| 778 bool m_sentEarlyShowPress; |
| 774 }; | 779 }; |
| 775 | 780 |
| 776 // We have no ways to check if the specified WebView is an instance of | 781 // We have no ways to check if the specified WebView is an instance of |
| 777 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 782 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 778 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 779 | 784 |
| 780 } // namespace blink | 785 } // namespace blink |
| 781 | 786 |
| 782 #endif | 787 #endif |
| OLD | NEW |