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

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

Issue 133443011: Add text field change handling for autofill preview in textarea element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrap text Created 6 years, 9 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
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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 903
904 webFrame->client()->forwardInputEvent(&webEvent); 904 webFrame->client()->forwardInputEvent(&webEvent);
905 } else if (event->isWheelEvent()) { 905 } else if (event->isWheelEvent()) {
906 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), document->rend erer(), *static_cast<WebCore::WheelEvent*>(event)); 906 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), document->rend erer(), *static_cast<WebCore::WheelEvent*>(event));
907 if (webEvent.type == WebInputEvent::Undefined) 907 if (webEvent.type == WebInputEvent::Undefined)
908 return; 908 return;
909 webFrame->client()->forwardInputEvent(&webEvent); 909 webFrame->client()->forwardInputEvent(&webEvent);
910 } 910 }
911 } 911 }
912 912
913 void ChromeClientImpl::didChangeValueInTextField(HTMLInputElement& inputElement) 913 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
914 { 914 {
915 if (!m_webView->autofillClient()) 915 if (!m_webView->autofillClient())
916 return; 916 return;
917 m_webView->autofillClient()->textFieldDidChange(WebInputElement(&inputElemen t)); 917 m_webView->autofillClient()->textFieldDidChange(WebFormControlElement(&eleme nt));
918 } 918 }
919 919
920 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) 920 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement)
921 { 921 {
922 if (m_webView->autofillClient()) 922 if (m_webView->autofillClient())
923 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement)); 923 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement));
924 } 924 }
925 925
926 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) 926 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input)
927 { 927 {
(...skipping 20 matching lines...) Expand all
948 { 948 {
949 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); 949 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url));
950 } 950 }
951 951
952 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) 952 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url)
953 { 953 {
954 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); 954 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url);
955 } 955 }
956 956
957 } // namespace blink 957 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698