| 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 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1305 | 1305 |
| 1306 const NativeWebKeyboardEvent* | 1306 const NativeWebKeyboardEvent* |
| 1307 RenderWidgetHostImpl::GetLastKeyboardEvent() const { | 1307 RenderWidgetHostImpl::GetLastKeyboardEvent() const { |
| 1308 return input_router_->GetLastKeyboardEvent(); | 1308 return input_router_->GetLastKeyboardEvent(); |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 void RenderWidgetHostImpl::OnSelectionChanged(const base::string16& text, | 1311 void RenderWidgetHostImpl::OnSelectionChanged(const base::string16& text, |
| 1312 size_t offset, | 1312 size_t offset, |
| 1313 const gfx::Range& range) { | 1313 const gfx::Range& range) { |
| 1314 if (view_) | 1314 if (view_) |
| 1315 view_->SelectionChanged(text, offset, range); | 1315 view_->SelectionChanged(text, static_cast<size_t>(offset), range); |
| 1316 } | 1316 } |
| 1317 | 1317 |
| 1318 void RenderWidgetHostImpl::OnSelectionBoundsChanged( | 1318 void RenderWidgetHostImpl::OnSelectionBoundsChanged( |
| 1319 const ViewHostMsg_SelectionBounds_Params& params) { | 1319 const ViewHostMsg_SelectionBounds_Params& params) { |
| 1320 if (view_) { | 1320 if (view_) { |
| 1321 view_->SelectionBoundsChanged(params); | 1321 view_->SelectionBoundsChanged(params); |
| 1322 } | 1322 } |
| 1323 } | 1323 } |
| 1324 | 1324 |
| 1325 void RenderWidgetHostImpl::OnForwardCompositorProto( | 1325 void RenderWidgetHostImpl::OnForwardCompositorProto( |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2254 } | 2254 } |
| 2255 | 2255 |
| 2256 #if defined(OS_WIN) | 2256 #if defined(OS_WIN) |
| 2257 gfx::NativeViewAccessible | 2257 gfx::NativeViewAccessible |
| 2258 RenderWidgetHostImpl::GetParentNativeViewAccessible() { | 2258 RenderWidgetHostImpl::GetParentNativeViewAccessible() { |
| 2259 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; | 2259 return delegate_ ? delegate_->GetParentNativeViewAccessible() : NULL; |
| 2260 } | 2260 } |
| 2261 #endif | 2261 #endif |
| 2262 | 2262 |
| 2263 } // namespace content | 2263 } // namespace content |
| OLD | NEW |