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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 #include "PlatformScreen.h" | 70 #include "PlatformScreen.h" |
71 #include "PopupContainer.h" | 71 #include "PopupContainer.h" |
72 #include "PopupMenuChromium.h" | 72 #include "PopupMenuChromium.h" |
73 #include "RenderWidget.h" | 73 #include "RenderWidget.h" |
74 #include "ScriptController.h" | 74 #include "ScriptController.h" |
75 #include "SearchPopupMenuChromium.h" | 75 #include "SearchPopupMenuChromium.h" |
76 #include "SecurityOrigin.h" | 76 #include "SecurityOrigin.h" |
77 #include "Settings.h" | 77 #include "Settings.h" |
78 #include "TextFieldDecorationElement.h" | 78 #include "TextFieldDecorationElement.h" |
79 #include "WebAccessibilityObject.h" | 79 #include "WebAccessibilityObject.h" |
80 #include "WebAutofillClient.h" | |
81 #if ENABLE(INPUT_TYPE_COLOR) | 80 #if ENABLE(INPUT_TYPE_COLOR) |
82 #include "WebColorChooser.h" | 81 #include "WebColorChooser.h" |
83 #endif | 82 #endif |
84 #include "WebConsoleMessage.h" | 83 #include "WebConsoleMessage.h" |
85 #include "WebCursorInfo.h" | 84 #include "WebCursorInfo.h" |
86 #include "WebFileChooserCompletionImpl.h" | 85 #include "WebFileChooserCompletionImpl.h" |
87 #include "WebFrameClient.h" | 86 #include "WebFrameClient.h" |
88 #include "WebFrameImpl.h" | 87 #include "WebFrameImpl.h" |
89 #include "WebIconLoadingCompletionImpl.h" | 88 #include "WebIconLoadingCompletionImpl.h" |
90 #include "WebInputEvent.h" | 89 #include "WebInputEvent.h" |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 | 1137 |
1139 #if ENABLE(DRAGGABLE_REGION) | 1138 #if ENABLE(DRAGGABLE_REGION) |
1140 void ChromeClientImpl::annotatedRegionsChanged() | 1139 void ChromeClientImpl::annotatedRegionsChanged() |
1141 { | 1140 { |
1142 WebViewClient* client = m_webView->client(); | 1141 WebViewClient* client = m_webView->client(); |
1143 if (client) | 1142 if (client) |
1144 client->draggableRegionsChanged(); | 1143 client->draggableRegionsChanged(); |
1145 } | 1144 } |
1146 #endif | 1145 #endif |
1147 | 1146 |
1148 void ChromeClientImpl::didAssociateFormControls(const Vector<Element*>& elements
) | |
1149 { | |
1150 if (!m_webView->autofillClient()) | |
1151 return; | |
1152 WebVector<WebNode> elementVector(static_cast<size_t>(elements.size())); | |
1153 size_t elementsCount = elements.size(); | |
1154 for (size_t i = 0; i < elementsCount; ++i) | |
1155 elementVector[i] = elements[i]; | |
1156 m_webView->autofillClient()->didAssociateFormControls(elementVector); | |
1157 } | |
1158 | |
1159 bool ChromeClientImpl::shouldNotifyOnFormChanges() | |
1160 { | |
1161 return true; | |
1162 } | |
1163 | |
1164 #if ENABLE(NAVIGATOR_CONTENT_UTILS) | 1147 #if ENABLE(NAVIGATOR_CONTENT_UTILS) |
1165 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre
ate(WebViewImpl* webView) | 1148 PassOwnPtr<NavigatorContentUtilsClientImpl> NavigatorContentUtilsClientImpl::cre
ate(WebViewImpl* webView) |
1166 { | 1149 { |
1167 return adoptPtr(new NavigatorContentUtilsClientImpl(webView)); | 1150 return adoptPtr(new NavigatorContentUtilsClientImpl(webView)); |
1168 } | 1151 } |
1169 | 1152 |
1170 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
bView) | 1153 NavigatorContentUtilsClientImpl::NavigatorContentUtilsClientImpl(WebViewImpl* we
bView) |
1171 : m_webView(webView) | 1154 : m_webView(webView) |
1172 { | 1155 { |
1173 } | 1156 } |
1174 | 1157 |
1175 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) | 1158 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche
me, const String& baseURL, const String& url, const String& title) |
1176 { | 1159 { |
1177 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1160 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
1178 } | 1161 } |
1179 #endif | 1162 #endif |
1180 | 1163 |
1181 } // namespace WebKit | 1164 } // namespace WebKit |
OLD | NEW |