| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 class WebSettingsImpl; | 94 class WebSettingsImpl; |
| 95 class WebViewScheduler; | 95 class WebViewScheduler; |
| 96 | 96 |
| 97 class WEB_EXPORT WebViewImpl final | 97 class WEB_EXPORT WebViewImpl final |
| 98 : NON_EXPORTED_BASE(public WebViewBase), | 98 : NON_EXPORTED_BASE(public WebViewBase), |
| 99 NON_EXPORTED_BASE(public WebGestureCurveTarget), | 99 NON_EXPORTED_BASE(public WebGestureCurveTarget), |
| 100 public PageWidgetEventHandler, | 100 public PageWidgetEventHandler, |
| 101 public WebScheduler::InterventionReporter, | 101 public WebScheduler::InterventionReporter, |
| 102 public WebViewScheduler::WebViewSchedulerSettings { | 102 public WebViewScheduler::WebViewSchedulerSettings { |
| 103 public: | 103 public: |
| 104 static WebViewBase* Create(WebViewClient*, WebPageVisibilityState); | 104 static WebViewBase* Create(WebViewClient*, |
| 105 WebPageVisibilityState, |
| 106 WebViewImpl* opener); |
| 105 | 107 |
| 106 // WebWidget methods: | 108 // WebWidget methods: |
| 107 void Close() override; | 109 void Close() override; |
| 108 WebSize Size() override; | 110 WebSize Size() override; |
| 109 void Resize(const WebSize&) override; | 111 void Resize(const WebSize&) override; |
| 110 void ResizeVisualViewport(const WebSize&) override; | 112 void ResizeVisualViewport(const WebSize&) override; |
| 111 void DidEnterFullscreen() override; | 113 void DidEnterFullscreen() override; |
| 112 void DidExitFullscreen() override; | 114 void DidExitFullscreen() override; |
| 113 | 115 |
| 114 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) override; | 116 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) override; |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // TODO(lfg): Remove once WebViewFrameWidget is deleted. | 533 // TODO(lfg): Remove once WebViewFrameWidget is deleted. |
| 532 void ScheduleAnimationForWidget() override; | 534 void ScheduleAnimationForWidget() override; |
| 533 bool GetCompositionCharacterBounds(WebVector<WebRect>&) override; | 535 bool GetCompositionCharacterBounds(WebVector<WebRect>&) override; |
| 534 | 536 |
| 535 void UpdateBaseBackgroundColor(); | 537 void UpdateBaseBackgroundColor(); |
| 536 | 538 |
| 537 friend class WebView; // So WebView::Create can call our constructor | 539 friend class WebView; // So WebView::Create can call our constructor |
| 538 friend class WebViewFrameWidget; | 540 friend class WebViewFrameWidget; |
| 539 friend class WTF::RefCounted<WebViewImpl>; | 541 friend class WTF::RefCounted<WebViewImpl>; |
| 540 | 542 |
| 541 explicit WebViewImpl(WebViewClient*, WebPageVisibilityState); | 543 explicit WebViewImpl(WebViewClient*, |
| 544 WebPageVisibilityState, |
| 545 WebViewImpl* opener); |
| 542 ~WebViewImpl() override; | 546 ~WebViewImpl() override; |
| 543 | 547 |
| 544 void HideSelectPopup(); | 548 void HideSelectPopup(); |
| 545 | 549 |
| 546 HitTestResult HitTestResultForRootFramePos(const IntPoint&); | 550 HitTestResult HitTestResultForRootFramePos(const IntPoint&); |
| 547 HitTestResult HitTestResultForViewportPos(const IntPoint&); | 551 HitTestResult HitTestResultForViewportPos(const IntPoint&); |
| 548 | 552 |
| 549 void ConfigureAutoResizeMode(); | 553 void ConfigureAutoResizeMode(); |
| 550 | 554 |
| 551 void InitializeLayerTreeView(); | 555 void InitializeLayerTreeView(); |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 745 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
| 742 }; | 746 }; |
| 743 | 747 |
| 744 // We have no ways to check if the specified WebView is an instance of | 748 // We have no ways to check if the specified WebView is an instance of |
| 745 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 749 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 746 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 750 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 747 | 751 |
| 748 } // namespace blink | 752 } // namespace blink |
| 749 | 753 |
| 750 #endif | 754 #endif |
| OLD | NEW |