| 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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 client->draggableRegionsChanged(); | 845 client->draggableRegionsChanged(); |
| 846 } | 846 } |
| 847 | 847 |
| 848 void ChromeClientImpl::didAssociateFormControls(const Vector<RefPtr<Element> >&
elements) | 848 void ChromeClientImpl::didAssociateFormControls(const Vector<RefPtr<Element> >&
elements) |
| 849 { | 849 { |
| 850 if (!m_webView->autofillClient()) | 850 if (!m_webView->autofillClient()) |
| 851 return; | 851 return; |
| 852 WebVector<WebNode> elementVector(static_cast<size_t>(elements.size())); | 852 WebVector<WebNode> elementVector(static_cast<size_t>(elements.size())); |
| 853 size_t elementsCount = elements.size(); | 853 size_t elementsCount = elements.size(); |
| 854 for (size_t i = 0; i < elementsCount; ++i) | 854 for (size_t i = 0; i < elementsCount; ++i) |
| 855 elementVector[i] = elements[i]; | 855 elementVector[i] = elements[i].get(); |
| 856 m_webView->autofillClient()->didAssociateFormControls(elementVector); | 856 m_webView->autofillClient()->didAssociateFormControls(elementVector); |
| 857 } | 857 } |
| 858 | 858 |
| 859 void ChromeClientImpl::didCancelCompositionOnSelectionChange() | 859 void ChromeClientImpl::didCancelCompositionOnSelectionChange() |
| 860 { | 860 { |
| 861 if (m_webView->client()) | 861 if (m_webView->client()) |
| 862 m_webView->client()->didCancelCompositionOnSelectionChange(); | 862 m_webView->client()->didCancelCompositionOnSelectionChange(); |
| 863 } | 863 } |
| 864 | 864 |
| 865 void ChromeClientImpl::willSetInputMethodState() | 865 void ChromeClientImpl::willSetInputMethodState() |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 { | 947 { |
| 948 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 948 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
| 949 } | 949 } |
| 950 | 950 |
| 951 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 951 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
| 952 { | 952 { |
| 953 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 953 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
| 954 } | 954 } |
| 955 | 955 |
| 956 } // namespace blink | 956 } // namespace blink |
| OLD | NEW |