| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 class DeprecatedPaintLayerCompositor; | 78 class DeprecatedPaintLayerCompositor; |
| 79 class TopControls; | 79 class TopControls; |
| 80 class UserGestureToken; | 80 class UserGestureToken; |
| 81 class WebActiveGestureAnimation; | 81 class WebActiveGestureAnimation; |
| 82 class WebDevToolsAgentImpl; | 82 class WebDevToolsAgentImpl; |
| 83 class WebLayerTreeView; | 83 class WebLayerTreeView; |
| 84 class WebLocalFrameImpl; | 84 class WebLocalFrameImpl; |
| 85 class WebImage; | 85 class WebImage; |
| 86 class WebPagePopupImpl; | 86 class WebPagePopupImpl; |
| 87 class WebPlugin; | 87 class WebPlugin; |
| 88 class WebSelection; |
| 88 class WebSettingsImpl; | 89 class WebSettingsImpl; |
| 89 | 90 |
| 90 struct WebSelectionBound; | |
| 91 | |
| 92 class WebViewImpl final : public WebView | 91 class WebViewImpl final : public WebView |
| 93 , public RefCounted<WebViewImpl> | 92 , public RefCounted<WebViewImpl> |
| 94 , public WebGestureCurveTarget | 93 , public WebGestureCurveTarget |
| 95 , public PageWidgetEventHandler { | 94 , public PageWidgetEventHandler { |
| 96 public: | 95 public: |
| 97 static WebViewImpl* create(WebViewClient*); | 96 static WebViewImpl* create(WebViewClient*); |
| 98 static HashSet<WebViewImpl*>& allInstances(); | 97 static HashSet<WebViewImpl*>& allInstances(); |
| 99 | 98 |
| 100 // WebWidget methods: | 99 // WebWidget methods: |
| 101 virtual void close() override; | 100 virtual void close() override; |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 | 473 |
| 475 void enableFakePageScaleAnimationForTesting(bool); | 474 void enableFakePageScaleAnimationForTesting(bool); |
| 476 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 475 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
| 477 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 476 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
| 478 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 477 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
| 479 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 478 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
| 480 | 479 |
| 481 void enterFullScreenForElement(Element*); | 480 void enterFullScreenForElement(Element*); |
| 482 void exitFullScreenForElement(Element*); | 481 void exitFullScreenForElement(Element*); |
| 483 | 482 |
| 484 void clearCompositedSelectionBounds(); | 483 void clearCompositedSelection(); |
| 485 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); | 484 void updateCompositedSelection(const WebSelection&); |
| 486 | 485 |
| 487 // Exposed for the purpose of overriding device metrics. | 486 // Exposed for the purpose of overriding device metrics. |
| 488 void sendResizeEventAndRepaint(); | 487 void sendResizeEventAndRepaint(); |
| 489 | 488 |
| 490 // Exposed for testing purposes. | 489 // Exposed for testing purposes. |
| 491 bool hasHorizontalScrollbar(); | 490 bool hasHorizontalScrollbar(); |
| 492 bool hasVerticalScrollbar(); | 491 bool hasVerticalScrollbar(); |
| 493 | 492 |
| 494 // Pointer Lock calls allow a page to capture all mouse events and | 493 // Pointer Lock calls allow a page to capture all mouse events and |
| 495 // disable the system cursor. | 494 // disable the system cursor. |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 }; | 769 }; |
| 771 | 770 |
| 772 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 771 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 773 // We have no ways to check if the specified WebView is an instance of | 772 // We have no ways to check if the specified WebView is an instance of |
| 774 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 773 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 774 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 776 | 775 |
| 777 } // namespace blink | 776 } // namespace blink |
| 778 | 777 |
| 779 #endif | 778 #endif |
| OLD | NEW |