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

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

Issue 663523002: Adding support for DOM3 KeyboardEvents Code in KeyboardEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added new embedder API and code review comments update Created 5 years, 11 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 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 void ChromeClientImpl::showImeIfNeeded() 828 void ChromeClientImpl::showImeIfNeeded()
829 { 829 {
830 if (m_webView->client()) 830 if (m_webView->client())
831 m_webView->client()->showImeIfNeeded(); 831 m_webView->client()->showImeIfNeeded();
832 } 832 }
833 833
834 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event) 834 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event)
835 { 835 {
836 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 836 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
837 if (webframe->autofillClient()) 837 if (webframe->autofillClient())
838 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event)); 838 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(webframe->frameView(), event));
839 } 839 }
840 840
841 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element ) 841 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
842 { 842 {
843 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame()); 843 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame());
844 if (webframe->autofillClient()) 844 if (webframe->autofillClient())
845 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el ement)); 845 webframe->autofillClient()->textFieldDidChange(WebFormControlElement(&el ement));
846 } 846 }
847 847
848 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement) 848 void ChromeClientImpl::didEndEditingOnTextField(HTMLInputElement& inputElement)
(...skipping 11 matching lines...) Expand all
860 } 860 }
861 861
862 void ChromeClientImpl::textFieldDataListChanged(HTMLInputElement& input) 862 void ChromeClientImpl::textFieldDataListChanged(HTMLInputElement& input)
863 { 863 {
864 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document(). frame()); 864 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(input.document(). frame());
865 if (webframe->autofillClient()) 865 if (webframe->autofillClient())
866 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu t)); 866 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu t));
867 } 867 }
868 868
869 } // namespace blink 869 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698