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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 class RenderLayerCompositor; | 71 class RenderLayerCompositor; |
72 class UserGestureToken; | 72 class UserGestureToken; |
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 | 80 |
| 81 struct WebSelectionBound; |
| 82 |
81 class WebViewImpl FINAL : public WebView | 83 class WebViewImpl FINAL : public WebView |
82 , public RefCounted<WebViewImpl> | 84 , public RefCounted<WebViewImpl> |
83 , public WebGestureCurveTarget | 85 , public WebGestureCurveTarget |
84 , public PagePopupDriver | 86 , public PagePopupDriver |
85 , public PageWidgetEventHandler { | 87 , public PageWidgetEventHandler { |
86 public: | 88 public: |
87 static WebViewImpl* create(WebViewClient*); | 89 static WebViewImpl* create(WebViewClient*); |
88 | 90 |
89 // WebWidget methods: | 91 // WebWidget methods: |
90 virtual void close() OVERRIDE; | 92 virtual void close() OVERRIDE; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 void enableFakePageScaleAnimationForTesting(bool); | 449 void enableFakePageScaleAnimationForTesting(bool); |
448 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } | 450 bool fakeDoubleTapAnimationPendingForTesting() const { return m_doubleTapZoo
mPending; } |
449 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } | 451 IntPoint fakePageScaleAnimationTargetPositionForTesting() const { return m_f
akePageScaleAnimationTargetPosition; } |
450 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } | 452 float fakePageScaleAnimationPageScaleForTesting() const { return m_fakePageS
caleAnimationPageScaleFactor; } |
451 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } | 453 bool fakePageScaleAnimationUseAnchorForTesting() const { return m_fakePageSc
aleAnimationUseAnchor; } |
452 | 454 |
453 void enterFullScreenForElement(Element*); | 455 void enterFullScreenForElement(Element*); |
454 void exitFullScreenForElement(Element*); | 456 void exitFullScreenForElement(Element*); |
455 | 457 |
456 void clearCompositedSelectionBounds(); | 458 void clearCompositedSelectionBounds(); |
| 459 void updateCompositedSelectionBounds(const WebSelectionBound& anchor, const
WebSelectionBound& focus); |
457 | 460 |
458 // Exposed for the purpose of overriding device metrics. | 461 // Exposed for the purpose of overriding device metrics. |
459 void sendResizeEventAndRepaint(); | 462 void sendResizeEventAndRepaint(); |
460 | 463 |
461 // Exposed for testing purposes. | 464 // Exposed for testing purposes. |
462 bool hasHorizontalScrollbar(); | 465 bool hasHorizontalScrollbar(); |
463 bool hasVerticalScrollbar(); | 466 bool hasVerticalScrollbar(); |
464 | 467 |
465 // Pointer Lock calls allow a page to capture all mouse events and | 468 // Pointer Lock calls allow a page to capture all mouse events and |
466 // disable the system cursor. | 469 // disable the system cursor. |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 float m_topControlsContentOffset; | 730 float m_topControlsContentOffset; |
728 }; | 731 }; |
729 | 732 |
730 // We have no ways to check if the specified WebView is an instance of | 733 // We have no ways to check if the specified WebView is an instance of |
731 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 734 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
732 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 735 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
733 | 736 |
734 } // namespace blink | 737 } // namespace blink |
735 | 738 |
736 #endif | 739 #endif |
OLD | NEW |