| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 522 |
| 523 bool isTransparent() const; | 523 bool isTransparent() const; |
| 524 void setIsTransparent(bool value); | 524 void setIsTransparent(bool value); |
| 525 | 525 |
| 526 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } | 526 double lastFrameTimeMonotonic() const { return m_lastFrameTimeMonotonic; } |
| 527 | 527 |
| 528 private: | 528 private: |
| 529 InspectorOverlay* inspectorOverlay(); | 529 InspectorOverlay* inspectorOverlay(); |
| 530 | 530 |
| 531 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 531 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
| 532 void propagateZoomToLocalFrameRoots(Frame*); |
| 532 | 533 |
| 533 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); | 534 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& visualViewportOrigin); |
| 534 | 535 |
| 535 float maximumLegiblePageScale() const; | 536 float maximumLegiblePageScale() const; |
| 536 void refreshPageScaleFactorAfterLayout(); | 537 void refreshPageScaleFactorAfterLayout(); |
| 537 IntSize contentsSize() const; | 538 IntSize contentsSize() const; |
| 538 | 539 |
| 539 void performResize(); | 540 void performResize(); |
| 540 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo
ntrolsShrinkLayout); | 541 void resizeViewWhileAnchored(FrameView*, float topControlsHeight, bool topCo
ntrolsShrinkLayout); |
| 541 | 542 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 }; | 756 }; |
| 756 | 757 |
| 757 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 758 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 758 // We have no ways to check if the specified WebView is an instance of | 759 // We have no ways to check if the specified WebView is an instance of |
| 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 760 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 761 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 761 | 762 |
| 762 } // namespace blink | 763 } // namespace blink |
| 763 | 764 |
| 764 #endif | 765 #endif |
| OLD | NEW |