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

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: palmer's comments 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 cb891ec95c3cb8e8685faf0e5193d3ba5178e1f1..e921e40190cb3339e08bb6e3ba9753609eec2a1b 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2060,6 +2060,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