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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1205033005: Adds selection expansion support for Contextual Search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add bug number Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 361643010c43a1f5446779c87b09f2e9dec6656e..98ef969586ded11196bc67c5d5aa5decdbf1219b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2056,6 +2056,16 @@ void WebContentsImpl::SelectRange(const gfx::Point& base,
new InputMsg_SelectRange(focused_frame->GetRoutingID(), base, extent));
}
+void WebContentsImpl::AdjustSelectionByCharacterOffset(int start_adjust,
+ int end_adjust) {
+ RenderFrameHost* focused_frame = GetFocusedFrame();
+ if (!focused_frame)
+ return;
+
+ focused_frame->Send(new InputMsg_AdjustSelectionByCharacterOffset(
+ focused_frame->GetRoutingID(), start_adjust, end_adjust));
+}
+
void WebContentsImpl::UpdatePreferredSize(const gfx::Size& pref_size) {
const gfx::Size old_size = GetPreferredSize();
preferred_size_ = pref_size;

Powered by Google App Engine
This is Rietveld 408576698