Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(100)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 289873002: Remove isCompositorFramePending plumbing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Expectations for virtual suite Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698