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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 501 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
502 | 502 |
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; |
| 512 |
511 private: | 513 private: |
512 void didUpdateTopControls(); | 514 void didUpdateTopControls(); |
513 void setTopControlsContentOffset(float); | 515 void setTopControlsContentOffset(float); |
514 | 516 |
515 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to | 517 // TODO(bokan): Remains for legacy pinch. Remove once it's gone. Made privat
e to |
516 // prevent external usage | 518 // prevent external usage |
517 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) o
verride; | 519 virtual void setPageScaleFactor(float scaleFactor, const WebPoint& origin) o
verride; |
518 void setPageScaleFactorAndLocation(float, const FloatPoint&); | 520 void setPageScaleFactorAndLocation(float, const FloatPoint&); |
519 | 521 |
520 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); | 522 void scrollAndRescaleViewports(float scaleFactor, const IntPoint& mainFrameO
rigin, const FloatPoint& pinchViewportOrigin); |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
751 float m_topControlsLayoutHeight; | 753 float m_topControlsLayoutHeight; |
752 }; | 754 }; |
753 | 755 |
754 // We have no ways to check if the specified WebView is an instance of | 756 // We have no ways to check if the specified WebView is an instance of |
755 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 757 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
756 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 758 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
757 | 759 |
758 } // namespace blink | 760 } // namespace blink |
759 | 761 |
760 #endif | 762 #endif |
OLD | NEW |