| 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const | 704 GraphicsLayerFactory* ChromeClientImpl::graphicsLayerFactory() const |
| 705 { | 705 { |
| 706 return m_webView->graphicsLayerFactory(); | 706 return m_webView->graphicsLayerFactory(); |
| 707 } | 707 } |
| 708 | 708 |
| 709 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) | 709 void ChromeClientImpl::attachRootGraphicsLayer(GraphicsLayer* rootLayer) |
| 710 { | 710 { |
| 711 m_webView->setRootGraphicsLayer(rootLayer); | 711 m_webView->setRootGraphicsLayer(rootLayer); |
| 712 } | 712 } |
| 713 | 713 |
| 714 ChromeClient::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTrigge
rs() const | 714 WebCore::CompositingTriggerFlags ChromeClientImpl::allowedCompositingTriggers()
const |
| 715 { | 715 { |
| 716 if (!m_webView->allowsAcceleratedCompositing()) | 716 if (!m_webView->allowsAcceleratedCompositing()) |
| 717 return 0; | 717 return 0; |
| 718 | 718 |
| 719 CompositingTriggerFlags flags = 0; | 719 WebCore::CompositingTriggerFlags flags = 0; |
| 720 Settings& settings = m_webView->page()->settings(); | 720 Settings& settings = m_webView->page()->settings(); |
| 721 if (settings.acceleratedCompositingFor3DTransformsEnabled()) | 721 if (settings.acceleratedCompositingFor3DTransformsEnabled()) |
| 722 flags |= ThreeDTransformTrigger; | 722 flags |= WebCore::ThreeDTransformTrigger; |
| 723 if (settings.acceleratedCompositingForVideoEnabled()) | 723 if (settings.acceleratedCompositingForVideoEnabled()) |
| 724 flags |= VideoTrigger; | 724 flags |= WebCore::VideoTrigger; |
| 725 if (settings.acceleratedCompositingForPluginsEnabled()) | 725 if (settings.acceleratedCompositingForPluginsEnabled()) |
| 726 flags |= PluginTrigger; | 726 flags |= WebCore::PluginTrigger; |
| 727 if (settings.acceleratedCompositingForAnimationEnabled()) | 727 if (settings.acceleratedCompositingForAnimationEnabled()) |
| 728 flags |= AnimationTrigger; | 728 flags |= WebCore::AnimationTrigger; |
| 729 if (settings.acceleratedCompositingForCanvasEnabled()) | 729 if (settings.acceleratedCompositingForCanvasEnabled()) |
| 730 flags |= CanvasTrigger; | 730 flags |= WebCore::CanvasTrigger; |
| 731 if (settings.acceleratedCompositingForScrollableFramesEnabled()) | 731 if (settings.acceleratedCompositingForScrollableFramesEnabled()) |
| 732 flags |= ScrollableInnerFrameTrigger; | 732 flags |= WebCore::ScrollableInnerFrameTrigger; |
| 733 if (settings.acceleratedCompositingForFiltersEnabled()) | 733 if (settings.acceleratedCompositingForFiltersEnabled()) |
| 734 flags |= FilterTrigger; | 734 flags |= WebCore::FilterTrigger; |
| 735 | 735 |
| 736 return flags; | 736 return flags; |
| 737 } | 737 } |
| 738 | 738 |
| 739 void ChromeClientImpl::enterFullScreenForElement(Element* element) | 739 void ChromeClientImpl::enterFullScreenForElement(Element* element) |
| 740 { | 740 { |
| 741 m_webView->enterFullScreenForElement(element); | 741 m_webView->enterFullScreenForElement(element); |
| 742 } | 742 } |
| 743 | 743 |
| 744 void ChromeClientImpl::exitFullScreenForElement(Element* element) | 744 void ChromeClientImpl::exitFullScreenForElement(Element* element) |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 { | 968 { |
| 969 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 969 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
| 970 } | 970 } |
| 971 | 971 |
| 972 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 972 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
| 973 { | 973 { |
| 974 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 974 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
| 975 } | 975 } |
| 976 | 976 |
| 977 } // namespace blink | 977 } // namespace blink |
| OLD | NEW |