Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/web/ChromeClientImpl.cpp

Issue 270573008: Oilpan: Prepare to support garbage-collected Node in WebNode hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add FIXME comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/WebDocument.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698