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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) | 472 void ChromeClientImpl::invalidateContentsForSlowScroll(const IntRect& updateRect
) |
473 { | 473 { |
474 invalidateContentsAndRootView(updateRect); | 474 invalidateContentsAndRootView(updateRect); |
475 } | 475 } |
476 | 476 |
477 void ChromeClientImpl::scheduleAnimation() | 477 void ChromeClientImpl::scheduleAnimation() |
478 { | 478 { |
479 m_webView->scheduleAnimation(); | 479 m_webView->scheduleAnimation(); |
480 } | 480 } |
481 | 481 |
| 482 bool ChromeClientImpl::isCompositorFramePending() const |
| 483 { |
| 484 return m_webView->client()->isCompositorFramePending(); |
| 485 } |
| 486 |
482 void ChromeClientImpl::scroll( | 487 void ChromeClientImpl::scroll( |
483 const IntSize& scrollDelta, const IntRect& scrollRect, | 488 const IntSize& scrollDelta, const IntRect& scrollRect, |
484 const IntRect& clipRect) | 489 const IntRect& clipRect) |
485 { | 490 { |
486 if (!m_webView->isAcceleratedCompositingActive()) { | 491 if (!m_webView->isAcceleratedCompositingActive()) { |
487 if (m_webView->client()) { | 492 if (m_webView->client()) { |
488 int dx = scrollDelta.width(); | 493 int dx = scrollDelta.width(); |
489 int dy = scrollDelta.height(); | 494 int dy = scrollDelta.height(); |
490 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect,
clipRect)); | 495 m_webView->client()->didScrollRect(dx, dy, intersection(scrollRect,
clipRect)); |
491 } | 496 } |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 { | 957 { |
953 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 958 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
954 } | 959 } |
955 | 960 |
956 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 961 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
957 { | 962 { |
958 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 963 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
959 } | 964 } |
960 | 965 |
961 } // namespace blink | 966 } // namespace blink |
OLD | NEW |