| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "IntRect.h" | 54 #include "IntRect.h" |
| 55 #include "NavigationAction.h" | 55 #include "NavigationAction.h" |
| 56 #include "Node.h" | 56 #include "Node.h" |
| 57 #include "NotificationPresenterImpl.h" | 57 #include "NotificationPresenterImpl.h" |
| 58 #include "Page.h" | 58 #include "Page.h" |
| 59 #include "PopupMenuChromium.h" | 59 #include "PopupMenuChromium.h" |
| 60 #include "RenderWidget.h" | 60 #include "RenderWidget.h" |
| 61 #include "ScriptController.h" | 61 #include "ScriptController.h" |
| 62 #include "SearchPopupMenuChromium.h" | 62 #include "SearchPopupMenuChromium.h" |
| 63 #include "SecurityOrigin.h" | 63 #include "SecurityOrigin.h" |
| 64 #include "Settings.h" |
| 64 #if USE(V8) | 65 #if USE(V8) |
| 65 #include "V8Proxy.h" | 66 #include "V8Proxy.h" |
| 66 #endif | 67 #endif |
| 67 #include "WebAccessibilityObject.h" | 68 #include "WebAccessibilityObject.h" |
| 68 #include "WebConsoleMessage.h" | 69 #include "WebConsoleMessage.h" |
| 69 #include "WebCursorInfo.h" | 70 #include "WebCursorInfo.h" |
| 70 #include "WebFileChooserCompletionImpl.h" | 71 #include "WebFileChooserCompletionImpl.h" |
| 71 #include "WebFrameClient.h" | 72 #include "WebFrameClient.h" |
| 72 #include "WebFrameImpl.h" | 73 #include "WebFrameImpl.h" |
| 73 #include "WebGeolocationService.h" | 74 #include "WebGeolocationService.h" |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 void ChromeClientImpl::scheduleCompositingLayerSync() | 806 void ChromeClientImpl::scheduleCompositingLayerSync() |
| 806 { | 807 { |
| 807 m_webView->setRootLayerNeedsDisplay(); | 808 m_webView->setRootLayerNeedsDisplay(); |
| 808 } | 809 } |
| 809 | 810 |
| 810 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge
rs() const | 811 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge
rs() const |
| 811 { | 812 { |
| 812 if (!m_webView->allowsAcceleratedCompositing()) | 813 if (!m_webView->allowsAcceleratedCompositing()) |
| 813 return 0; | 814 return 0; |
| 814 | 815 |
| 815 return ChromeClient::AllTriggers; | 816 CompositingTriggerFlags flags = 0; |
| 817 Settings* settings = m_webView->page()->settings(); |
| 818 if (settings->acceleratedCompositingFor3DTransformsEnabled()) |
| 819 flags |= ThreeDTransformTrigger; |
| 820 if (settings->acceleratedCompositingForVideoEnabled()) |
| 821 flags |= VideoTrigger; |
| 822 if (settings->acceleratedCompositingForPluginsEnabled()) |
| 823 flags |= PluginTrigger; |
| 824 if (settings->acceleratedCompositingForAnimationEnabled()) |
| 825 flags |= AnimationTrigger; |
| 826 if (settings->acceleratedCompositingForCanvasEnabled()) |
| 827 flags |= CanvasTrigger; |
| 828 |
| 829 return flags; |
| 816 } | 830 } |
| 817 #endif | 831 #endif |
| 818 | 832 |
| 819 bool ChromeClientImpl::supportsFullscreenForNode(const WebCore::Node* node) | 833 bool ChromeClientImpl::supportsFullscreenForNode(const WebCore::Node* node) |
| 820 { | 834 { |
| 821 if (m_webView->client() && node->hasTagName(WebCore::HTMLNames::videoTag)) | 835 if (m_webView->client() && node->hasTagName(WebCore::HTMLNames::videoTag)) |
| 822 return m_webView->client()->supportsFullscreen(); | 836 return m_webView->client()->supportsFullscreen(); |
| 823 return false; | 837 return false; |
| 824 } | 838 } |
| 825 | 839 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 847 | 861 |
| 848 return adoptRef(new PopupMenuChromium(client)); | 862 return adoptRef(new PopupMenuChromium(client)); |
| 849 } | 863 } |
| 850 | 864 |
| 851 PassRefPtr<SearchPopupMenu> ChromeClientImpl::createSearchPopupMenu(PopupMenuCli
ent* client) const | 865 PassRefPtr<SearchPopupMenu> ChromeClientImpl::createSearchPopupMenu(PopupMenuCli
ent* client) const |
| 852 { | 866 { |
| 853 return adoptRef(new SearchPopupMenuChromium(client)); | 867 return adoptRef(new SearchPopupMenuChromium(client)); |
| 854 } | 868 } |
| 855 | 869 |
| 856 } // namespace WebKit | 870 } // namespace WebKit |
| OLD | NEW |