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

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: call onMouseDown for GestureTap righter after MousePress is dispatched 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
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 if (m_webView->client()) 877 if (m_webView->client())
878 m_webView->client()->showImeIfNeeded(); 878 m_webView->client()->showImeIfNeeded();
879 } 879 }
880 880
881 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged) 881 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged)
882 { 882 {
883 if (m_webView->client()) 883 if (m_webView->client())
884 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI nViewport), WebNode(tappedNode), pageChanged); 884 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI nViewport), WebNode(tappedNode), pageChanged);
885 } 885 }
886 886
887 void ChromeClientImpl::onMouseDown(Node* mouseDownNode)
888 {
889 if (m_webView->client())
890 m_webView->client()->onMouseDown(WebNode(mouseDownNode));
891 }
892
887 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event) 893 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event)
888 { 894 {
889 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 895 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
890 if (webframe->autofillClient()) 896 if (webframe->autofillClient())
891 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event)); 897 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event));
892 } 898 }
893 899
894 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element ) 900 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
895 { 901 {
896 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame()); 902 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(element.document( ).frame());
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 } 958 }
953 959
954 void ChromeClientImpl::notifyPopupOpeningObservers() const 960 void ChromeClientImpl::notifyPopupOpeningObservers() const
955 { 961 {
956 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); 962 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers);
957 for (const auto& observer : observers) 963 for (const auto& observer : observers)
958 observer->willOpenPopup(); 964 observer->willOpenPopup();
959 } 965 }
960 966
961 } // namespace blink 967 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.h ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698