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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 class RenderLayerCompositor; | 70 class RenderLayerCompositor; |
71 class UserGestureToken; | 71 class UserGestureToken; |
72 class WebActiveGestureAnimation; | 72 class WebActiveGestureAnimation; |
73 class WebDevToolsAgentPrivate; | 73 class WebDevToolsAgentPrivate; |
74 class WebLocalFrameImpl; | 74 class WebLocalFrameImpl; |
75 class WebImage; | 75 class WebImage; |
76 class WebPagePopupImpl; | 76 class WebPagePopupImpl; |
77 class WebPlugin; | 77 class WebPlugin; |
78 class WebSettingsImpl; | 78 class WebSettingsImpl; |
79 | 79 |
| 80 struct WebSelectionBound; |
| 81 |
80 class WebViewImpl FINAL : public WebView | 82 class WebViewImpl FINAL : public WebView |
81 , public RefCounted<WebViewImpl> | 83 , public RefCounted<WebViewImpl> |
82 , public WebGestureCurveTarget | 84 , public WebGestureCurveTarget |
83 , public PagePopupDriver | 85 , public PagePopupDriver |
84 , public PageWidgetEventHandler { | 86 , public PageWidgetEventHandler { |
85 public: | 87 public: |
86 static WebViewImpl* create(WebViewClient*); | 88 static WebViewImpl* create(WebViewClient*); |
87 | 89 |
88 // WebWidget methods: | 90 // WebWidget methods: |
89 virtual void close() OVERRIDE; | 91 virtual void close() OVERRIDE; |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 444 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
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(Element*); | 448 void enterFullScreenForElement(Element*); |
447 void exitFullScreenForElement(Element*); | 449 void exitFullScreenForElement(Element*); |
448 | 450 |
449 void clearCompositedSelectionBounds(); | 451 void clearCompositedSelectionBounds(); |
| 452 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); |
450 | 453 |
451 // Exposed for the purpose of overriding device metrics. | 454 // Exposed for the purpose of overriding device metrics. |
452 void sendResizeEventAndRepaint(); | 455 void sendResizeEventAndRepaint(); |
453 | 456 |
454 // Exposed for testing purposes. | 457 // Exposed for testing purposes. |
455 bool hasHorizontalScrollbar(); | 458 bool hasHorizontalScrollbar(); |
456 bool hasVerticalScrollbar(); | 459 bool hasVerticalScrollbar(); |
457 | 460 |
458 // 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 |
459 // disable the system cursor. | 462 // disable the system cursor. |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 bool m_userGestureObserved; | 718 bool m_userGestureObserved; |
716 }; | 719 }; |
717 | 720 |
718 // 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 |
719 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 722 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
720 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 723 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
721 | 724 |
722 } // namespace blink | 725 } // namespace blink |
723 | 726 |
724 #endif | 727 #endif |
OLD | NEW |