| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "public/platform/WebPoint.h" | 48 #include "public/platform/WebPoint.h" |
| 49 #include "public/platform/WebRect.h" | 49 #include "public/platform/WebRect.h" |
| 50 #include "public/platform/WebScheduler.h" | 50 #include "public/platform/WebScheduler.h" |
| 51 #include "public/platform/WebSize.h" | 51 #include "public/platform/WebSize.h" |
| 52 #include "public/platform/WebString.h" | 52 #include "public/platform/WebString.h" |
| 53 #include "public/platform/WebVector.h" | 53 #include "public/platform/WebVector.h" |
| 54 #include "public/web/WebNavigationPolicy.h" | 54 #include "public/web/WebNavigationPolicy.h" |
| 55 #include "public/web/WebPageImportanceSignals.h" | 55 #include "public/web/WebPageImportanceSignals.h" |
| 56 #include "public/web/WebView.h" | 56 #include "public/web/WebView.h" |
| 57 #include "web/ChromeClientImpl.h" | 57 #include "web/ChromeClientImpl.h" |
| 58 #include "web/CompositorProxyClientFactoryImpl.h" |
| 58 #include "web/ContextMenuClientImpl.h" | 59 #include "web/ContextMenuClientImpl.h" |
| 59 #include "web/EditorClientImpl.h" | 60 #include "web/EditorClientImpl.h" |
| 60 #include "web/MediaKeysClientImpl.h" | 61 #include "web/MediaKeysClientImpl.h" |
| 61 #include "web/PageWidgetDelegate.h" | 62 #include "web/PageWidgetDelegate.h" |
| 62 #include "web/ResizeViewportAnchor.h" | 63 #include "web/ResizeViewportAnchor.h" |
| 63 #include "web/SpellCheckerClientImpl.h" | 64 #include "web/SpellCheckerClientImpl.h" |
| 64 #include "web/StorageClientImpl.h" | 65 #include "web/StorageClientImpl.h" |
| 65 #include "web/WebExport.h" | 66 #include "web/WebExport.h" |
| 66 #include "wtf/Compiler.h" | 67 #include "wtf/Compiler.h" |
| 67 #include "wtf/HashSet.h" | 68 #include "wtf/HashSet.h" |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 bool animate) override; | 480 bool animate) override; |
| 480 | 481 |
| 481 BrowserControls& browserControls(); | 482 BrowserControls& browserControls(); |
| 482 // Called anytime browser controls layout height or content offset have | 483 // Called anytime browser controls layout height or content offset have |
| 483 // changed. | 484 // changed. |
| 484 void didUpdateBrowserControls(); | 485 void didUpdateBrowserControls(); |
| 485 | 486 |
| 486 void forceNextWebGLContextCreationToFail() override; | 487 void forceNextWebGLContextCreationToFail() override; |
| 487 void forceNextDrawingBufferCreationToFail() override; | 488 void forceNextDrawingBufferCreationToFail() override; |
| 488 | 489 |
| 489 CompositorProxyClient* createCompositorProxyClient(); | 490 CompositorProxyClientFactory* compositorProxyClientFactory(); |
| 490 IntSize mainFrameSize(); | 491 IntSize mainFrameSize(); |
| 491 WebDisplayMode displayMode() const { return m_displayMode; } | 492 WebDisplayMode displayMode() const { return m_displayMode; } |
| 492 | 493 |
| 493 PageScaleConstraintsSet& pageScaleConstraintsSet() const; | 494 PageScaleConstraintsSet& pageScaleConstraintsSet() const; |
| 494 | 495 |
| 495 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } | 496 FloatSize elasticOverscroll() const { return m_elasticOverscroll; } |
| 496 | 497 |
| 497 bool isTransparent() const; | 498 bool isTransparent() const; |
| 498 void setIsTransparent(bool value); | 499 void setIsTransparent(bool value); |
| 499 | 500 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 709 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; | 710 bool m_shouldDispatchFirstLayoutAfterFinishedParsing; |
| 710 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; | 711 bool m_shouldDispatchFirstLayoutAfterFinishedLoading; |
| 711 WebDisplayMode m_displayMode; | 712 WebDisplayMode m_displayMode; |
| 712 | 713 |
| 713 FloatSize m_elasticOverscroll; | 714 FloatSize m_elasticOverscroll; |
| 714 | 715 |
| 715 // This is owned by the LayerTreeHostImpl, and should only be used on the | 716 // This is owned by the LayerTreeHostImpl, and should only be used on the |
| 716 // compositor thread. The LayerTreeHostImpl is indirectly owned by this | 717 // compositor thread. The LayerTreeHostImpl is indirectly owned by this |
| 717 // class so this pointer should be valid until this class is destructed. | 718 // class so this pointer should be valid until this class is destructed. |
| 718 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; | 719 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; |
| 720 Persistent<CompositorProxyClientFactoryImpl> m_proxyClientFactory; |
| 719 | 721 |
| 720 Persistent<EventListener> m_popupMouseWheelEventListener; | 722 Persistent<EventListener> m_popupMouseWheelEventListener; |
| 721 | 723 |
| 722 WebPageImportanceSignals m_pageImportanceSignals; | 724 WebPageImportanceSignals m_pageImportanceSignals; |
| 723 | 725 |
| 724 const std::unique_ptr<WebViewScheduler> m_scheduler; | 726 const std::unique_ptr<WebViewScheduler> m_scheduler; |
| 725 | 727 |
| 726 double m_lastFrameTimeMonotonic; | 728 double m_lastFrameTimeMonotonic; |
| 727 | 729 |
| 728 // TODO(lfg): This is used in order to disable compositor visibility while | 730 // TODO(lfg): This is used in order to disable compositor visibility while |
| 729 // the page is still visible. This is needed until the WebView and WebWidget | 731 // the page is still visible. This is needed until the WebView and WebWidget |
| 730 // split is complete, since in out-of-process iframes the page can be | 732 // split is complete, since in out-of-process iframes the page can be |
| 731 // visible, but the WebView should not be used as a widget. | 733 // visible, but the WebView should not be used as a widget. |
| 732 bool m_overrideCompositorVisibility; | 734 bool m_overrideCompositorVisibility; |
| 733 | 735 |
| 734 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 736 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 735 }; | 737 }; |
| 736 | 738 |
| 737 // We have no ways to check if the specified WebView is an instance of | 739 // We have no ways to check if the specified WebView is an instance of |
| 738 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 740 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 739 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 741 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 740 | 742 |
| 741 } // namespace blink | 743 } // namespace blink |
| 742 | 744 |
| 743 #endif | 745 #endif |
| OLD | NEW |