| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 class UserGestureToken; | 76 class UserGestureToken; |
| 77 class WebActiveGestureAnimation; | 77 class WebActiveGestureAnimation; |
| 78 class WebDevToolsAgentImpl; | 78 class WebDevToolsAgentImpl; |
| 79 class WebLayerTreeView; | 79 class WebLayerTreeView; |
| 80 class WebLocalFrameImpl; | 80 class WebLocalFrameImpl; |
| 81 class WebImage; | 81 class WebImage; |
| 82 class WebPagePopupImpl; | 82 class WebPagePopupImpl; |
| 83 class WebPlugin; | 83 class WebPlugin; |
| 84 class WebSettingsImpl; | 84 class WebSettingsImpl; |
| 85 | 85 |
| 86 struct WebSelectionBound; | 86 struct WebSelectionBounds; |
| 87 | 87 |
| 88 class WebViewImpl final : public WebView | 88 class WebViewImpl final : public WebView |
| 89 , public RefCounted<WebViewImpl> | 89 , public RefCounted<WebViewImpl> |
| 90 , public WebGestureCurveTarget | 90 , public WebGestureCurveTarget |
| 91 , public PageWidgetEventHandler { | 91 , public PageWidgetEventHandler { |
| 92 public: | 92 public: |
| 93 static WebViewImpl* create(WebViewClient*); | 93 static WebViewImpl* create(WebViewClient*); |
| 94 | 94 |
| 95 // WebWidget methods: | 95 // WebWidget methods: |
| 96 virtual void close() override; | 96 virtual void close() override; |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 void enableFakePageScaleAnimationForTesting(bool); | 475 void enableFakePageScaleAnimationForTesting(bool); |
| 476 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 476 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 477 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 477 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
| 478 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 478 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
| 479 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 479 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
| 480 | 480 |
| 481 void enterFullScreenForElement(Element*); | 481 void enterFullScreenForElement(Element*); |
| 482 void exitFullScreenForElement(Element*); | 482 void exitFullScreenForElement(Element*); |
| 483 | 483 |
| 484 void clearCompositedSelectionBounds(); | 484 void clearCompositedSelectionBounds(); |
| 485 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); | 485 void updateCompositedSelectionBounds(const WebSelectionBounds&); |
| 486 | 486 |
| 487 // Exposed for the purpose of overriding device metrics. | 487 // Exposed for the purpose of overriding device metrics. |
| 488 void sendResizeEventAndRepaint(); | 488 void sendResizeEventAndRepaint(); |
| 489 | 489 |
| 490 // Exposed for testing purposes. | 490 // Exposed for testing purposes. |
| 491 bool hasHorizontalScrollbar(); | 491 bool hasHorizontalScrollbar(); |
| 492 bool hasVerticalScrollbar(); | 492 bool hasVerticalScrollbar(); |
| 493 | 493 |
| 494 // Pointer Lock calls allow a page to capture all mouse events and | 494 // Pointer Lock calls allow a page to capture all mouse events and |
| 495 // disable the system cursor. | 495 // disable the system cursor. |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 }; | 778 }; |
| 779 | 779 |
| 780 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 780 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 781 // 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 |
| 782 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 782 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 783 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 784 | 784 |
| 785 } // namespace blink | 785 } // namespace blink |
| 786 | 786 |
| 787 #endif | 787 #endif |
| OLD | NEW |