| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // Detaches the PaintArtifactCompositor and clears the layer tree view's | 518 // Detaches the PaintArtifactCompositor and clears the layer tree view's |
| 519 // root layer. | 519 // root layer. |
| 520 void detachPaintArtifactCompositor(); | 520 void detachPaintArtifactCompositor(); |
| 521 | 521 |
| 522 // Use in Slimming Paint v2 to update the layer tree for the content. | 522 // Use in Slimming Paint v2 to update the layer tree for the content. |
| 523 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa
ctCompositor; } | 523 PaintArtifactCompositor& getPaintArtifactCompositor() { return m_paintArtifa
ctCompositor; } |
| 524 | 524 |
| 525 bool isTransparent() const; | 525 bool isTransparent() const; |
| 526 void setIsTransparent(bool value); | 526 void setIsTransparent(bool value); |
| 527 | 527 |
| 528 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
| 529 |
| 528 private: | 530 private: |
| 529 InspectorOverlay* inspectorOverlay(); | 531 InspectorOverlay* inspectorOverlay(); |
| 530 | 532 |
| 531 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 533 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
| 532 | 534 |
| 533 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 535 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
| 534 | 536 |
| 535 float maximumLegiblePageScale() const; | 537 float maximumLegiblePageScale() const; |
| 536 void refreshPageScaleFactorAfterLayout(); | 538 void refreshPageScaleFactorAfterLayout(); |
| 537 void resumeTreeViewCommitsIfRenderingReady(); | 539 void resumeTreeViewCommitsIfRenderingReady(); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 FloatSize m_elasticOverscroll; | 746 FloatSize m_elasticOverscroll; |
| 745 | 747 |
| 746 Persistent<EventListener> m_popupMouseWheelEventListener; | 748 Persistent<EventListener> m_popupMouseWheelEventListener; |
| 747 | 749 |
| 748 WebPageImportanceSignals m_pageImportanceSignals; | 750 WebPageImportanceSignals m_pageImportanceSignals; |
| 749 | 751 |
| 750 const OwnPtr<WebViewScheduler> m_scheduler; | 752 const OwnPtr<WebViewScheduler> m_scheduler; |
| 751 | 753 |
| 752 // Manages the layer tree created for this page in Slimming Paint v2. | 754 // Manages the layer tree created for this page in Slimming Paint v2. |
| 753 PaintArtifactCompositor m_paintArtifactCompositor; | 755 PaintArtifactCompositor m_paintArtifactCompositor; |
| 756 |
| 757 double m_lastFrameTimeMonotonic; |
| 754 }; | 758 }; |
| 755 | 759 |
| 756 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 760 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 757 // We have no ways to check if the specified WebView is an instance of | 761 // We have no ways to check if the specified WebView is an instance of |
| 758 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 762 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 759 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 763 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 760 | 764 |
| 761 } // namespace blink | 765 } // namespace blink |
| 762 | 766 |
| 763 #endif | 767 #endif |
| OLD | NEW |