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

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

Issue 1205033005: Adds selection expansion support for Contextual Search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698