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_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1427 for (const auto& file : file_paths) { | 1427 for (const auto& file : file_paths) { |
1428 if (!policy->CanReadFile(GetProcess()->GetID(), file)) | 1428 if (!policy->CanReadFile(GetProcess()->GetID(), file)) |
1429 policy->GrantReadFile(GetProcess()->GetID(), file); | 1429 policy->GrantReadFile(GetProcess()->GetID(), file); |
1430 } | 1430 } |
1431 } | 1431 } |
1432 | 1432 |
1433 void RenderViewHostImpl::SelectWordAroundCaret() { | 1433 void RenderViewHostImpl::SelectWordAroundCaret() { |
1434 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); | 1434 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); |
1435 } | 1435 } |
1436 | 1436 |
| 1437 void RenderViewHostImpl::MoveSelectionByCharacterOffset(int startAdjust, |
| 1438 int endAdjust) { |
| 1439 Send(new ViewMsg_MoveSelectionByCharacterOffset(GetRoutingID(), startAdjust, |
| 1440 endAdjust)); |
| 1441 } |
| 1442 |
1437 } // namespace content | 1443 } // namespace content |
OLD | NEW |