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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 class WebViewScheduler; | 96 class WebViewScheduler; |
97 | 97 |
98 class WEB_EXPORT WebViewImpl final | 98 class WEB_EXPORT WebViewImpl final |
99 : NON_EXPORTED_BASE(public WebViewBase), | 99 : NON_EXPORTED_BASE(public WebViewBase), |
100 NON_EXPORTED_BASE(public WebGestureCurveTarget), | 100 NON_EXPORTED_BASE(public WebGestureCurveTarget), |
101 public PageWidgetEventHandler, | 101 public PageWidgetEventHandler, |
102 public WebScheduler::InterventionReporter, | 102 public WebScheduler::InterventionReporter, |
103 public WebViewScheduler::WebViewSchedulerSettings { | 103 public WebViewScheduler::WebViewSchedulerSettings { |
104 public: | 104 public: |
105 static WebViewImpl* Create(WebViewClient*, WebPageVisibilityState); | 105 static WebViewImpl* Create(WebViewClient*, WebPageVisibilityState); |
106 static HashSet<WebViewImpl*>& AllInstances(); | |
107 | 106 |
108 // WebWidget methods: | 107 // WebWidget methods: |
109 void Close() override; | 108 void Close() override; |
110 WebSize Size() override; | 109 WebSize Size() override; |
111 void Resize(const WebSize&) override; | 110 void Resize(const WebSize&) override; |
112 void ResizeVisualViewport(const WebSize&) override; | 111 void ResizeVisualViewport(const WebSize&) override; |
113 void DidEnterFullscreen() override; | 112 void DidEnterFullscreen() override; |
114 void DidExitFullscreen() override; | 113 void DidExitFullscreen() override; |
115 | 114 |
116 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) override; | 115 void SetSuppressFrameRequestsWorkaroundFor704763Only(bool) override; |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; | 746 Persistent<ResizeViewportAnchor> resize_viewport_anchor_; |
748 }; | 747 }; |
749 | 748 |
750 // We have no ways to check if the specified WebView is an instance of | 749 // We have no ways to check if the specified WebView is an instance of |
751 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 750 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
752 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 751 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
753 | 752 |
754 } // namespace blink | 753 } // namespace blink |
755 | 754 |
756 #endif | 755 #endif |
OLD | NEW |