| 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 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |