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

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

Issue 967213004: Removed FrameView's windowToContents and contentsToWindow methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('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 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 if (m_webView->client()) 831 if (m_webView->client())
832 m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput(); 832 m_webView->client()->didUpdateTextOfFocusedElementByNonUserInput();
833 } 833 }
834 834
835 void ChromeClientImpl::showImeIfNeeded() 835 void ChromeClientImpl::showImeIfNeeded()
836 { 836 {
837 if (m_webView->client()) 837 if (m_webView->client())
838 m_webView->client()->showImeIfNeeded(); 838 m_webView->client()->showImeIfNeeded();
839 } 839 }
840 840
841 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPosition, Node* tappedNode, bool pageChanged) 841 void ChromeClientImpl::showUnhandledTapUIIfNeeded(IntPoint tappedPositionInViewp ort, Node* tappedNode, bool pageChanged)
842 { 842 {
843 if (m_webView->client()) 843 if (m_webView->client())
844 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPosition) , WebNode(tappedNode), pageChanged); 844 m_webView->client()->showUnhandledTapUIIfNeeded(WebPoint(tappedPositionI nViewport), WebNode(tappedNode), pageChanged);
845 } 845 }
846 846
847 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event) 847 void ChromeClientImpl::handleKeyboardEventOnTextField(HTMLInputElement& inputEle ment, KeyboardEvent& event)
848 { 848 {
849 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame()); 849 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(inputElement.docu ment().frame());
850 if (webframe->autofillClient()) 850 if (webframe->autofillClient())
851 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event)); 851 webframe->autofillClient()->textFieldDidReceiveKeyDown(WebInputElement(& inputElement), WebKeyboardEventBuilder(event));
852 } 852 }
853 853
854 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element ) 854 void ChromeClientImpl::didChangeValueInTextField(HTMLFormControlElement& element )
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie w->pinchVirtualViewportEnabled()) 891 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie w->pinchVirtualViewportEnabled())
892 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView()); 892 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie w(m_webView->layerTreeView());
893 } 893 }
894 894
895 void ChromeClientImpl::didUpdateTopControls() const 895 void ChromeClientImpl::didUpdateTopControls() const
896 { 896 {
897 m_webView->didUpdateTopControls(); 897 m_webView->didUpdateTopControls();
898 } 898 }
899 899
900 } // namespace blink 900 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.cpp ('k') | Source/web/ContextMenuClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698