| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) | 487 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) |
| 488 { | 488 { |
| 489 invalidateContentsAndRootView(updateRect); | 489 invalidateContentsAndRootView(updateRect); |
| 490 } | 490 } |
| 491 | 491 |
| 492 void ChromeClientImpl::scheduleAnimation() | 492 void ChromeClientImpl::scheduleAnimation() |
| 493 { | 493 { |
| 494 m_webView->scheduleAnimation(); | 494 m_webView->scheduleAnimation(); |
| 495 } | 495 } |
| 496 | 496 |
| 497 bool ChromeClientImpl::isCompositorFramePending() const | |
| 498 { | |
| 499 return m_webView->client()->isCompositorFramePending(); | |
| 500 } | |
| 501 | |
| 502 void ChromeClientImpl::scroll( | 497 void ChromeClientImpl::scroll( |
| 503 const IntSize& scrollDelta, const IntRect& scrollRect, | 498 const IntSize& scrollDelta, const IntRect& scrollRect, |
| 504 const IntRect& clipRect) | 499 const IntRect& clipRect) |
| 505 { | 500 { |
| 506 if (!m_webView->isAcceleratedCompositingActive()) { | 501 if (!m_webView->isAcceleratedCompositingActive()) { |
| 507 if (m_webView->client()) { | 502 if (m_webView->client()) { |
| 508 int dx = scrollDelta.width(); | 503 int dx = scrollDelta.width(); |
| 509 int dy = scrollDelta.height(); | 504 int dy = scrollDelta.height(); |
| 510 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect,
clipRect)); | 505 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect,
clipRect)); |
| 511 } | 506 } |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 { | 942 { |
| 948 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 943 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
| 949 } | 944 } |
| 950 | 945 |
| 951 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 946 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
| 952 { | 947 { |
| 953 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 948 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
| 954 } | 949 } |
| 955 | 950 |
| 956 } // namespace blink | 951 } // namespace blink |
| OLD | NEW |