OLD | NEW |
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 1938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1949 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) { | 1949 void RenderWidgetHostImpl::DidOverscroll(const DidOverscrollParams& params) { |
1950 if (view_) | 1950 if (view_) |
1951 view_->DidOverscroll(params); | 1951 view_->DidOverscroll(params); |
1952 } | 1952 } |
1953 | 1953 |
1954 void RenderWidgetHostImpl::DidStopFlinging() { | 1954 void RenderWidgetHostImpl::DidStopFlinging() { |
1955 if (view_) | 1955 if (view_) |
1956 view_->DidStopFlinging(); | 1956 view_->DidStopFlinging(); |
1957 } | 1957 } |
1958 | 1958 |
| 1959 void RenderWidgetHostImpl::DidSelectWordAt() { |
| 1960 if (view_) |
| 1961 view_->ShowDefinitionForSelection(); |
| 1962 } |
| 1963 |
1959 void RenderWidgetHostImpl::OnKeyboardEventAck( | 1964 void RenderWidgetHostImpl::OnKeyboardEventAck( |
1960 const NativeWebKeyboardEventWithLatencyInfo& event, | 1965 const NativeWebKeyboardEventWithLatencyInfo& event, |
1961 InputEventAckState ack_result) { | 1966 InputEventAckState ack_result) { |
1962 latency_tracker_.OnInputEventAck(event.event, &event.latency); | 1967 latency_tracker_.OnInputEventAck(event.event, &event.latency); |
1963 | 1968 |
1964 #if defined(OS_MACOSX) | 1969 #if defined(OS_MACOSX) |
1965 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event.event)) | 1970 if (!is_hidden() && view_ && view_->PostProcessEventForPluginIme(event.event)) |
1966 return; | 1971 return; |
1967 #endif | 1972 #endif |
1968 | 1973 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2241 } | 2246 } |
2242 | 2247 |
2243 #if defined(OS_WIN) | 2248 #if defined(OS_WIN) |
2244 gfx::NativeViewAccessible | 2249 gfx::NativeViewAccessible |
2245 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2250 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
2246 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2251 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
2247 } | 2252 } |
2248 #endif | 2253 #endif |
2249 | 2254 |
2250 } // namespace content | 2255 } // namespace content |
OLD | NEW |