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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
992 | 992 |
993 webFrame->client()->forwardInputEvent(&webEvent); | 993 webFrame->client()->forwardInputEvent(&webEvent); |
994 } else if (event->isWheelEvent()) { | 994 } else if (event->isWheelEvent()) { |
995 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), document->rend erer(), *static_cast<WebCore::WheelEvent*>(event)); | 995 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), document->rend erer(), *static_cast<WebCore::WheelEvent*>(event)); |
996 if (webEvent.type == WebInputEvent::Undefined) | 996 if (webEvent.type == WebInputEvent::Undefined) |
997 return; | 997 return; |
998 webFrame->client()->forwardInputEvent(&webEvent); | 998 webFrame->client()->forwardInputEvent(&webEvent); |
999 } | 999 } |
1000 } | 1000 } |
1001 | 1001 |
1002 void ChromeClientImpl::didChangeValueInTextField(HTMLInputElement& inputElement) | 1002 void ChromeClientImpl::didChangeValueInTextField( |
1003 HTMLFormControlElement& element) | |
tkent
2014/02/06 00:05:45
You don't need to wrap the line.
ziran.sun
2014/02/06 10:32:17
Done.
| |
1003 { | 1004 { |
1004 if (!m_webView->autofillClient()) | 1005 if (!m_webView->autofillClient()) |
1005 return; | 1006 return; |
1006 m_webView->autofillClient()->textFieldDidChange(WebInputElement(&inputElemen t)); | 1007 m_webView->autofillClient()->textFieldDidChange( |
tkent
2014/02/06 00:05:45
Ditto.
ziran.sun
2014/02/06 10:32:17
Done.
| |
1008 WebFormControlElement(&element)); | |
1007 } | 1009 } |
1008 | 1010 |
1009 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) | 1011 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) |
1010 { | 1012 { |
1011 if (m_webView->autofillClient()) | 1013 if (m_webView->autofillClient()) |
1012 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement)); | 1014 m_webView->autofillClient()->textFieldDidEndEditing(WebInputElement(&inp utElement)); |
1013 } | 1015 } |
1014 | 1016 |
1015 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) | 1017 void ChromeClientImpl::openTextDataListChooser(HTMLInputElement& input) |
1016 { | 1018 { |
(...skipping 20 matching lines...) Expand all Loading... | |
1037 { | 1039 { |
1038 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 1040 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
1039 } | 1041 } |
1040 | 1042 |
1041 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 1043 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
1042 { | 1044 { |
1043 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 1045 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
1044 } | 1046 } |
1045 | 1047 |
1046 } // namespace blink | 1048 } // namespace blink |
OLD | NEW |