| 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 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 | 742 |
| 743 // This is owned by the LayerTreeHostImpl, and should only be used on the | 743 // This is owned by the LayerTreeHostImpl, and should only be used on the |
| 744 // compositor thread. The LayerTreeHostImpl is indirectly owned by this | 744 // compositor thread. The LayerTreeHostImpl is indirectly owned by this |
| 745 // class so this pointer should be valid until this class is destructed. | 745 // class so this pointer should be valid until this class is destructed. |
| 746 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; | 746 CrossThreadPersistent<CompositorMutatorImpl> m_mutator; |
| 747 | 747 |
| 748 Persistent<EventListener> m_popupMouseWheelEventListener; | 748 Persistent<EventListener> m_popupMouseWheelEventListener; |
| 749 | 749 |
| 750 WebPageImportanceSignals m_pageImportanceSignals; | 750 WebPageImportanceSignals m_pageImportanceSignals; |
| 751 | 751 |
| 752 const std::unique_ptr<WebViewScheduler> m_scheduler; | 752 std::unique_ptr<WebViewScheduler> m_scheduler; |
| 753 | 753 |
| 754 double m_lastFrameTimeMonotonic; | 754 double m_lastFrameTimeMonotonic; |
| 755 | 755 |
| 756 // TODO(lfg): This is used in order to disable compositor visibility while | 756 // TODO(lfg): This is used in order to disable compositor visibility while |
| 757 // the page is still visible. This is needed until the WebView and WebWidget | 757 // the page is still visible. This is needed until the WebView and WebWidget |
| 758 // split is complete, since in out-of-process iframes the page can be | 758 // split is complete, since in out-of-process iframes the page can be |
| 759 // visible, but the WebView should not be used as a widget. | 759 // visible, but the WebView should not be used as a widget. |
| 760 bool m_overrideCompositorVisibility; | 760 bool m_overrideCompositorVisibility; |
| 761 | 761 |
| 762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; | 762 Persistent<ResizeViewportAnchor> m_resizeViewportAnchor; |
| 763 }; | 763 }; |
| 764 | 764 |
| 765 // We have no ways to check if the specified WebView is an instance of | 765 // We have no ways to check if the specified WebView is an instance of |
| 766 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 766 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 767 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 768 | 768 |
| 769 } // namespace blink | 769 } // namespace blink |
| 770 | 770 |
| 771 #endif | 771 #endif |
| OLD | NEW |