| 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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 499 |
| 500 // Exposed for tests. | 500 // Exposed for tests. |
| 501 unsigned numLinkHighlights() { return m_linkHighlights.size(); } | 501 unsigned numLinkHighlights() { return m_linkHighlights.size(); } |
| 502 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get();
} | 502 LinkHighlightImpl* linkHighlight(int i) { return m_linkHighlights[i].get();
} |
| 503 | 503 |
| 504 WebSettingsImpl* settingsImpl(); | 504 WebSettingsImpl* settingsImpl(); |
| 505 | 505 |
| 506 // Returns the bounding box of the block type node touched by the WebPoint. | 506 // Returns the bounding box of the block type node touched by the WebPoint. |
| 507 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); | 507 WebRect computeBlockBound(const WebPoint&, bool ignoreClipping); |
| 508 | 508 |
| 509 // Exposed for tests. | |
| 510 WebVector<WebCompositionUnderline> compositionUnderlines() const; | |
| 511 | |
| 512 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } | 509 WebLayerTreeView* layerTreeView() const { return m_layerTreeView; } |
| 513 | 510 |
| 514 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 511 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
| 515 | 512 |
| 516 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov
erride; | 513 void setTopControlsHeight(float height, bool topControlsShrinkLayoutSize) ov
erride; |
| 517 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; | 514 void updateTopControlsState(WebTopControlsState constraint, WebTopControlsSt
ate current, bool animate) override; |
| 518 | 515 |
| 519 TopControls& topControls(); | 516 TopControls& topControls(); |
| 520 // Called anytime top controls layout height or content offset have changed. | 517 // Called anytime top controls layout height or content offset have changed. |
| 521 void didUpdateTopControls(); | 518 void didUpdateTopControls(); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 }; | 767 }; |
| 771 | 768 |
| 772 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); | 769 DEFINE_TYPE_CASTS(WebViewImpl, WebWidget, widget, widget->isWebView(), widget.is
WebView()); |
| 773 // We have no ways to check if the specified WebView is an instance of | 770 // We have no ways to check if the specified WebView is an instance of |
| 774 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 771 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 775 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 772 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 776 | 773 |
| 777 } // namespace blink | 774 } // namespace blink |
| 778 | 775 |
| 779 #endif | 776 #endif |
| OLD | NEW |