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

Side by Side Diff: WebKit/chromium/src/ChromeClientImpl.cpp

Issue 5523003: Part 1 of merges for Chromium bug #64589... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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
« no previous file with comments | « WebKit/chromium/src/ChromeClientImpl.h ('k') | WebKit/qt/WebCoreSupport/ChromeClientQt.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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
800 void ChromeClientImpl::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* grap hicsLayer) 800 void ChromeClientImpl::attachRootGraphicsLayer(Frame* frame, GraphicsLayer* grap hicsLayer)
801 { 801 {
802 m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer () : 0); 802 m_webView->setRootGraphicsLayer(graphicsLayer ? graphicsLayer->platformLayer () : 0);
803 } 803 }
804 804
805 void ChromeClientImpl::scheduleCompositingLayerSync() 805 void ChromeClientImpl::scheduleCompositingLayerSync()
806 { 806 {
807 m_webView->setRootLayerNeedsDisplay(); 807 m_webView->setRootLayerNeedsDisplay();
808 } 808 }
809 809
810 bool ChromeClientImpl::allowsAcceleratedCompositing() const 810 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge rs() const
811 { 811 {
812 return m_webView->allowsAcceleratedCompositing(); 812 if (!m_webView->allowsAcceleratedCompositing())
813 return 0;
814
815 return ChromeClient::AllTriggers;
813 } 816 }
814 #endif 817 #endif
815 818
816 bool ChromeClientImpl::supportsFullscreenForNode(const WebCore::Node* node) 819 bool ChromeClientImpl::supportsFullscreenForNode(const WebCore::Node* node)
817 { 820 {
818 if (m_webView->client() && node->hasTagName(WebCore::HTMLNames::videoTag)) 821 if (m_webView->client() && node->hasTagName(WebCore::HTMLNames::videoTag))
819 return m_webView->client()->supportsFullscreen(); 822 return m_webView->client()->supportsFullscreen();
820 return false; 823 return false;
821 } 824 }
822 825
(...skipping 21 matching lines...) Expand all
844 847
845 return adoptRef(new PopupMenuChromium(client)); 848 return adoptRef(new PopupMenuChromium(client));
846 } 849 }
847 850
848 PassRefPtr<SearchPopupMenu> ChromeClientImpl::createSearchPopupMenu(PopupMenuCli ent* client) const 851 PassRefPtr<SearchPopupMenu> ChromeClientImpl::createSearchPopupMenu(PopupMenuCli ent* client) const
849 { 852 {
850 return adoptRef(new SearchPopupMenuChromium(client)); 853 return adoptRef(new SearchPopupMenuChromium(client));
851 } 854 }
852 855
853 } // namespace WebKit 856 } // namespace WebKit
OLDNEW
« no previous file with comments | « WebKit/chromium/src/ChromeClientImpl.h ('k') | WebKit/qt/WebCoreSupport/ChromeClientQt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698