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