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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1528153004: Look Up on Force Touch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 1939 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) { 1950 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) {
1951 if (view_) 1951 if (view_)
1952 view_->DidOverscroll(params); 1952 view_->DidOverscroll(params);
1953 } 1953 }
1954 1954
1955 void RenderWidgetHostImpl::DidStopFlinging() { 1955 void RenderWidgetHostImpl::DidStopFlinging() {
1956 if (view_) 1956 if (view_)
1957 view_->DidStopFlinging(); 1957 view_->DidStopFlinging();
1958 } 1958 }
1959 1959
1960 void RenderWidgetHostImpl::DidSelectWordAtCoordinates() {
1961 if (view_)
1962 view_->ShowDefinitionForSelection();
1963 }
1964
1960 void RenderWidgetHostImpl::OnKeyboardEventAck( 1965 void RenderWidgetHostImpl::OnKeyboardEventAck(
1961 const NativeWebKeyboardEventWithLatencyInfo& event, 1966 const NativeWebKeyboardEventWithLatencyInfo& event,
1962 InputEventAckState ack_result) { 1967 InputEventAckState ack_result) {
1963 latency_tracker_.OnInputEventAck(event.event, &event.latency); 1968 latency_tracker_.OnInputEventAck(event.event, &event.latency);
1964 1969
1965 #if defined(OS_MACOSX) 1970 #if defined(OS_MACOSX)
1966 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event.event)) 1971 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event.event))
1967 return; 1972 return;
1968 #endif 1973 #endif
1969 1974
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 } 2247 }
2243 2248
2244 #if defined(OS_WIN) 2249 #if defined(OS_WIN)
2245 gfx::NativeViewAccessible 2250 gfx::NativeViewAccessible
2246 RenderWidgetHostImpl::GetParentNativeViewAccessible() { 2251 RenderWidgetHostImpl::GetParentNativeViewAccessible() {
2247 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; 2252 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL;
2248 } 2253 }
2249 #endif 2254 #endif
2250 2255
2251 } // namespace content 2256 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698