| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); | 320 WebRect computeBlockBounds(const WebRect&, bool ignoreClipping); |
| 321 | 321 |
| 322 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale); | 322 IntPoint clampOffsetAtScale(const IntPoint& offset, float scale); |
| 323 | 323 |
| 324 // Exposed for tests. | 324 // Exposed for tests. |
| 325 WebVector<WebCompositionUnderline> compositionUnderlines() const; | 325 WebVector<WebCompositionUnderline> compositionUnderlines() const; |
| 326 | 326 |
| 327 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } | 327 bool matchesHeuristicsForGpuRasterizationForTesting() const { return m_match
esHeuristicsForGpuRasterization; } |
| 328 | 328 |
| 329 private: | 329 private: |
| 330 float legibleScale() const; | |
| 331 void resumeTreeViewCommits(); | 330 void resumeTreeViewCommits(); |
| 332 IntSize contentsSize() const; | 331 IntSize contentsSize() const; |
| 333 | 332 |
| 334 void resetSavedScrollAndScaleState(); | 333 void resetSavedScrollAndScaleState(); |
| 335 | 334 |
| 336 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); | 335 void updateMainFrameScrollPosition(const IntPoint& scrollPosition, bool prog
rammaticScroll); |
| 337 | 336 |
| 338 void performResize(); | 337 void performResize(); |
| 339 | 338 |
| 340 friend class WebView; // So WebView::Create can call our constructor | 339 friend class WebView; // So WebView::Create can call our constructor |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 bool m_userGestureObserved; | 491 bool m_userGestureObserved; |
| 493 }; | 492 }; |
| 494 | 493 |
| 495 // We have no ways to check if the specified WebView is an instance of | 494 // We have no ways to check if the specified WebView is an instance of |
| 496 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 495 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 497 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 496 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 498 | 497 |
| 499 } // namespace blink | 498 } // namespace blink |
| 500 | 499 |
| 501 #endif | 500 #endif |
| OLD | NEW |