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

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

Issue 1093383003: Remove mainthread overhang painting code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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') | Source/web/ScrollbarGroup.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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 // FIXME: delete these lines once Chrome only uses the frame client interfac e, above. 658 // FIXME: delete these lines once Chrome only uses the frame client interfac e, above.
659 if (m_webView->client()) 659 if (m_webView->client())
660 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve nt(notification)); 660 m_webView->client()->postAccessibilityEvent(WebAXObject(obj), toWebAXEve nt(notification));
661 } 661 }
662 662
663 String ChromeClientImpl::acceptLanguages() 663 String ChromeClientImpl::acceptLanguages()
664 { 664 {
665 return m_webView->client()->acceptLanguages(); 665 return m_webView->client()->acceptLanguages();
666 } 666 }
667 667
668 bool ChromeClientImpl::paintCustomOverhangArea(GraphicsContext* context, const I ntRect& horizontalOverhangArea, const IntRect& verticalOverhangArea, const IntRe ct& dirtyRect)
669 {
670 LocalFrame* frame = m_webView->mainFrameImpl()->frame();
671 WebPluginContainerImpl* pluginContainer = WebLocalFrameImpl::pluginContainer FromFrame(frame);
672 if (pluginContainer)
673 return pluginContainer->paintCustomOverhangArea(context, horizontalOverh angArea, verticalOverhangArea, dirtyRect);
674 return false;
675 }
676
677 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const 668 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const
678 { 669 {
679 return m_webView->graphicsLayerFactory(); 670 return m_webView->graphicsLayerFactory();
680 } 671 }
681 672
682 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr ame* localRoot) 673 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer, LocalFr ame* localRoot)
683 { 674 {
684 // FIXME: For top-level frames we still use the WebView as a WebWidget. This special 675 // FIXME: For top-level frames we still use the WebView as a WebWidget. This special
685 // case will be removed when top-level frames get WebFrameWidgets. 676 // case will be removed when top-level frames get WebFrameWidgets.
686 if (localRoot->isMainFrame()) { 677 if (localRoot->isMainFrame()) {
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) 910 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView())
920 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView()); 911 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView());
921 } 912 }
922 913
923 void ChromeClientImpl::didUpdateTopControls() const 914 void ChromeClientImpl::didUpdateTopControls() const
924 { 915 {
925 m_webView->didUpdateTopControls(); 916 m_webView->didUpdateTopControls();
926 } 917 }
927 918
928 } // namespace blink 919 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | Source/web/ScrollbarGroup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698