| 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 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 880 { | 880 { |
| 881 if (m_webView->autofillClient()) | 881 if (m_webView->autofillClient()) |
| 882 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); | 882 m_webView->autofillClient()->openTextDataListChooser(WebInputElement(&in
put)); |
| 883 } | 883 } |
| 884 | 884 |
| 885 bool ChromeClientImpl::usesGpuRasterization() | 885 bool ChromeClientImpl::usesGpuRasterization() |
| 886 { | 886 { |
| 887 return m_webView->layerTreeView()->usesGpuRasterization(); | 887 return m_webView->layerTreeView()->usesGpuRasterization(); |
| 888 } | 888 } |
| 889 | 889 |
| 890 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre
ate(WebViewImpl* webView) | |
| 891 { | |
| 892 return adoptPtr(new NavigatorContentUtilsClientImpl(webView)); | |
| 893 } | |
| 894 | |
| 895 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
bView) | |
| 896 : m_webView(webView) | |
| 897 { | |
| 898 } | |
| 899 | |
| 900 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const WebCore::KURL& baseURL, const WebCore::KURL& url, const String& title) | |
| 901 { | |
| 902 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | |
| 903 } | |
| 904 | |
| 905 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl
::isProtocolHandlerRegistered(const String& scheme, const WebCore::KURL& baseURL
, const WebCore::KURL& url) | |
| 906 { | |
| 907 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | |
| 908 } | |
| 909 | |
| 910 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | |
| 911 { | |
| 912 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | |
| 913 } | |
| 914 | |
| 915 | |
| 916 } // namespace blink | 890 } // namespace blink |
| OLD | NEW |