| 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 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 503 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 503 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 504 | 504 |
| 505 bool pinchVirtualViewportEnabled() const; | 505 bool pinchVirtualViewportEnabled() const; |
| 506 | 506 |
| 507 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 507 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
| 508 | 508 |
| 509 virtual void setTopControlsLayoutHeight(float) override; | 509 virtual void setTopControlsLayoutHeight(float) override; |
| 510 | 510 |
| 511 virtual void forceNextWebGLContextCreationToFail() override; | 511 virtual void forceNextWebGLContextCreationToFail() override; |
| 512 | 512 |
| 513 IntSize mainFrameSize(); |
| 514 |
| 513 private: | 515 private: |
| 514 void didUpdateTopControls(); | 516 void didUpdateTopControls(); |
| 515 void setTopControlsContentOffset(float); | 517 void setTopControlsContentOffset(float); |
| 516 | 518 |
| 517 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to | 519 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
| 518 // prevent external usage | 520 // prevent external usage |
| 519 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) o
verride; | 521 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) o
verride; |
| 520 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 522 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
| 521 | 523 |
| 522 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); | 524 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 float m_topControlsLayoutHeight; | 755 float m_topControlsLayoutHeight; |
| 754 }; | 756 }; |
| 755 | 757 |
| 756 // We have no ways to check if the specified WebView is an instance of | 758 // We have no ways to check if the specified WebView is an instance of |
| 757 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 759 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 758 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 760 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 759 | 761 |
| 760 } // namespace blink | 762 } // namespace blink |
| 761 | 763 |
| 762 #endif | 764 #endif |
| OLD | NEW |