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

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

Issue 1176423008: Forward mouse down node information to WebWidgetClient (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 864 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 if (m_webView->client()) 875 if (m_webView->client())
876 m_webView->client()->showImeIfNeeded(); 876 m_webView->client()->showImeIfNeeded();
877 } 877 }
878 878
879 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged) 879 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged)
880 { 880 {
881 if (m_webView->client()) 881 if (m_webView->client())
882 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI nViewport), WebNode(tappedNode), pageChanged); 882 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI nViewport), WebNode(tappedNode), pageChanged);
883 } 883 }
884 884
885 void ChromeClientImpl::onClickInput(Node* clickedNode)
886 {
887 if (m_webView->client())
888 m_webView->client()->onClickInput(WebNode(clickedNode));
889 }
890
885 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event) 891 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event)
886 { 892 {
887 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 893 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
888 if (webframe->autofillClient()) 894 if (webframe->autofillClient())
889 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event)); 895 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event));
890 } 896 }
891 897
892 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element ) 898 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
893 { 899 {
894 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame()); 900 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame());
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 } 956 }
951 957
952 void ChromeClientImpl::notifyPopupOpeningObservers() const 958 void ChromeClientImpl::notifyPopupOpeningObservers() const
953 { 959 {
954 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); 960 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers);
955 for (const auto& observer : observers) 961 for (const auto& observer : observers)
956 observer->willOpenPopup(); 962 observer->willOpenPopup();
957 } 963 }
958 964
959 } // namespace blink 965 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698