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