| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 class WebViewScheduler; | 97 class WebViewScheduler; |
| 98 | 98 |
| 99 class WEB_EXPORT WebViewImpl final | 99 class WEB_EXPORT WebViewImpl final |
| 100 : NON_EXPORTED_BASE(public WebView), | 100 : NON_EXPORTED_BASE(public WebView), |
| 101 public RefCounted<WebViewImpl>, | 101 public RefCounted<WebViewImpl>, |
| 102 NON_EXPORTED_BASE(public WebGestureCurveTarget), | 102 NON_EXPORTED_BASE(public WebGestureCurveTarget), |
| 103 public PageWidgetEventHandler, | 103 public PageWidgetEventHandler, |
| 104 public WebScheduler::InterventionReporter, | 104 public WebScheduler::InterventionReporter, |
| 105 public WebViewScheduler::WebViewSchedulerSettings { | 105 public WebViewScheduler::WebViewSchedulerSettings { |
| 106 public: | 106 public: |
| 107 static WebViewImpl* create(WebPageVisibilityState); |
| 107 static WebViewImpl* create(WebViewClient*, WebPageVisibilityState); | 108 static WebViewImpl* create(WebViewClient*, WebPageVisibilityState); |
| 108 static HashSet<WebViewImpl*>& allInstances(); | 109 static HashSet<WebViewImpl*>& allInstances(); |
| 109 | 110 |
| 110 class UserGestureNotifier { | 111 class UserGestureNotifier { |
| 111 public: | 112 public: |
| 112 // If a UserGestureIndicator is created for a user gesture since the last | 113 // If a UserGestureIndicator is created for a user gesture since the last |
| 113 // page load and the WebViewImpl's |m_userGestureObserved| is false, the | 114 // page load and the WebViewImpl's |m_userGestureObserved| is false, the |
| 114 // UserGestureNotifier will notify the client and set | 115 // UserGestureNotifier will notify the client and set |
| 115 // |m_userGestureObserved| to true. | 116 // |m_userGestureObserved| to true. |
| 116 UserGestureNotifier(WebViewImpl*); | 117 UserGestureNotifier(WebViewImpl*); |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 743 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 743 }; | 744 }; |
| 744 | 745 |
| 745 // We have no ways to check if the specified WebView is an instance of | 746 // We have no ways to check if the specified WebView is an instance of |
| 746 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 747 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 747 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 748 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 748 | 749 |
| 749 } // namespace blink | 750 } // namespace blink |
| 750 | 751 |
| 751 #endif | 752 #endif |
| OLD | NEW |