2
3 [chromium] Add a setSelectionToRange() method to WebFrame.
4 https://bugs.webkit.org/show_bug.cgi?id=69846
5
6 Also add a method to WebRange to create a range given a frame and an
7 interval.
8
9 This will be used to implement the "replacement range" feature of OS X
10 IMEs, see http://codereview.chromium.org/8227018 (the change to
11 render_widget.cc).
12 The renderer will set the selection to the replacement range before
13 calling confirmComposition(). This matches how WK2 does this, see
14 Source/WebKit2/WebProcess/WebPage/mac/WebPageMac.mm,
15 WebPage::setComposition(). The function convertToRange() was taken
16 from there, too.
17
18 Reviewed by NOBODY (OOPS!).
19
20 * public/WebFrame.h:
21 (WebKit::WebFrame::setSelection):
22 * src/WebFrameImpl.cpp:
23 (WebKit::convertToRange):
24 (WebKit::WebViewImpl::setSelection):
25 * src/WebFrameImpl.h:
26