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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class PopupContainer; | 72 class PopupContainer; |
73 class WebActiveGestureAnimation; | 73 class WebActiveGestureAnimation; |
74 class WebDevToolsAgentPrivate; | 74 class WebDevToolsAgentPrivate; |
75 class WebLocalFrameImpl; | 75 class WebLocalFrameImpl; |
76 class WebImage; | 76 class WebImage; |
77 class WebPagePopupImpl; | 77 class WebPagePopupImpl; |
78 class WebPlugin; | 78 class WebPlugin; |
79 class WebSettingsImpl; | 79 class WebSettingsImpl; |
80 class FullscreenController; | 80 class FullscreenController; |
81 | 81 |
| 82 struct WebSelectionBound; |
| 83 |
82 class WebViewImpl FINAL : public WebView | 84 class WebViewImpl FINAL : public WebView |
83 , public RefCounted<WebViewImpl> | 85 , public RefCounted<WebViewImpl> |
84 , public WebGestureCurveTarget | 86 , public WebGestureCurveTarget |
85 , public WebCore::PagePopupDriver | 87 , public WebCore::PagePopupDriver |
86 , public PageWidgetEventHandler { | 88 , public PageWidgetEventHandler { |
87 public: | 89 public: |
88 static WebViewImpl* create(WebViewClient*); | 90 static WebViewImpl* create(WebViewClient*); |
89 | 91 |
90 // WebWidget methods: | 92 // WebWidget methods: |
91 virtual void close() OVERRIDE; | 93 virtual void close() OVERRIDE; |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 | 441 |
440 void enableFakePageScaleAnimationForTesting(bool); | 442 void enableFakePageScaleAnimationForTesting(bool); |
441 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 443 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
442 WebCore::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { r
eturn m_fakePageScaleAnimationTargetPosition; } | 444 WebCore::IntPoint fakePageScaleAnimationTargetPositionForTesting() const { r
eturn m_fakePageScaleAnimationTargetPosition; } |
443 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 445 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
444 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 446 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
445 | 447 |
446 void enterFullScreenForElement(WebCore::Element*); | 448 void enterFullScreenForElement(WebCore::Element*); |
447 void exitFullScreenForElement(WebCore::Element*); | 449 void exitFullScreenForElement(WebCore::Element*); |
448 | 450 |
| 451 void clearCompositedSelectionBounds(); |
| 452 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); |
| 453 |
449 // Exposed for the purpose of overriding device metrics. | 454 // Exposed for the purpose of overriding device metrics. |
450 void sendResizeEventAndRepaint(); | 455 void sendResizeEventAndRepaint(); |
451 | 456 |
452 // Exposed for testing purposes. | 457 // Exposed for testing purposes. |
453 bool hasHorizontalScrollbar(); | 458 bool hasHorizontalScrollbar(); |
454 bool hasVerticalScrollbar(); | 459 bool hasVerticalScrollbar(); |
455 | 460 |
456 // Pointer Lock calls allow a page to capture all mouse events and | 461 // Pointer Lock calls allow a page to capture all mouse events and |
457 // disable the system cursor. | 462 // disable the system cursor. |
458 bool requestPointerLock(); | 463 bool requestPointerLock(); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 bool m_userGestureObserved; | 718 bool m_userGestureObserved; |
714 }; | 719 }; |
715 | 720 |
716 // We have no ways to check if the specified WebView is an instance of | 721 // We have no ways to check if the specified WebView is an instance of |
717 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 722 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
718 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 723 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
719 | 724 |
720 } // namespace blink | 725 } // namespace blink |
721 | 726 |
722 #endif | 727 #endif |
OLD | NEW |