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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 void enableFakePageScaleAnimationForTesting(bool); | 441 void enableFakePageScaleAnimationForTesting(bool); |
440 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 442 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
441 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 443 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
442 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 444 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
443 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 445 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
444 | 446 |
445 void enterFullScreenForElement(Element*); | 447 void enterFullScreenForElement(Element*); |
446 void exitFullScreenForElement(Element*); | 448 void exitFullScreenForElement(Element*); |
447 | 449 |
448 void clearCompositedSelectionBounds(); | 450 void clearCompositedSelectionBounds(); |
| 451 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); |
449 | 452 |
450 // Exposed for the purpose of overriding device metrics. | 453 // Exposed for the purpose of overriding device metrics. |
451 void sendResizeEventAndRepaint(); | 454 void sendResizeEventAndRepaint(); |
452 | 455 |
453 // Exposed for testing purposes. | 456 // Exposed for testing purposes. |
454 bool hasHorizontalScrollbar(); | 457 bool hasHorizontalScrollbar(); |
455 bool hasVerticalScrollbar(); | 458 bool hasVerticalScrollbar(); |
456 | 459 |
457 // Pointer Lock calls allow a page to capture all mouse events and | 460 // Pointer Lock calls allow a page to capture all mouse events and |
458 // disable the system cursor. | 461 // disable the system cursor. |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 bool m_userGestureObserved; | 717 bool m_userGestureObserved; |
715 }; | 718 }; |
716 | 719 |
717 // We have no ways to check if the specified WebView is an instance of | 720 // We have no ways to check if the specified WebView is an instance of |
718 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 721 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
719 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 722 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
720 | 723 |
721 } // namespace blink | 724 } // namespace blink |
722 | 725 |
723 #endif | 726 #endif |
OLD | NEW |