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

Issue 243032: First implementation of PlainTextController. (Closed)

Created:
11 years, 2 months ago by Roland
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

First implementation of PlainTextController. Add a plainText object to the JS window object similarly to layoutTestController or eventSender. This object currently has a single function 'plainText' that takes a range and returns the plain text contained within. The implementation also adds a few methods that should be generally useful. BUG=23285 TEST=LayoutTests/editing/text-iterator/basic-iteration.html

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix style issues. #

Total comments: 5

Patch Set 3 : Fix lint errors. #

Patch Set 4 : '' #

Total comments: 6

Patch Set 5 : '' #

Total comments: 3

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -9 lines) Patch
M webkit/api/public/WebBindings.h View 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M webkit/api/public/WebRange.h View 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M webkit/api/src/WebBindings.cpp View 4 5 4 chunks +28 lines, -0 lines 0 comments Download
M webkit/api/src/WebRange.cpp View 4 5 2 chunks +11 lines, -0 lines 0 comments Download
M webkit/tools/layout_tests/test_expectations.txt View 4 5 1 chunk +0 lines, -2 lines 0 comments Download
A webkit/tools/test_shell/plain_text_controller.h View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A webkit/tools/test_shell/plain_text_controller.cc View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_shell.h View 1 2 3 4 5 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell.cc View 1 2 3 4 5 4 chunks +5 lines, -3 lines 0 comments Download
M webkit/tools/test_shell/test_shell.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Roland
Hi all, In the crusade to tackle LTTF bugs I uploaded a first attempt at ...
11 years, 2 months ago (2009-09-29 10:22:53 UTC) #1
M-A Ruel
I don't know why you are putting me on this review as I don't know ...
11 years, 2 months ago (2009-09-29 11:21:27 UTC) #2
Roland
On 2009/09/29 11:21:27, Marc-Antoine Ruel wrote: > I don't know why you are putting me ...
11 years, 2 months ago (2009-09-29 12:42:29 UTC) #3
brettw
http://codereview.chromium.org/243032/diff/4001/4003 File webkit/glue/cpp_variant.h (right): http://codereview.chromium.org/243032/diff/4001/4003#newcode112 Line 112: bool GetProperty(const std::string& property, CppVariant& result) const; Output ...
11 years, 2 months ago (2009-09-29 17:19:13 UTC) #4
darin (slow to review)
http://codereview.chromium.org/243032/diff/4001/4004 File webkit/tools/test_shell/plain_text_controller.cc (right): http://codereview.chromium.org/243032/diff/4001/4004#newcode16 Line 16: if (NULL == shell_) nit: if (!shell_) http://codereview.chromium.org/243032/diff/4001/4004#newcode43 ...
11 years, 2 months ago (2009-09-30 05:10:13 UTC) #5
Roland
On 2009/09/30 05:10:13, darin wrote: > looks like you should run this CL through lint ...
11 years, 2 months ago (2009-09-30 11:24:32 UTC) #6
Roland
RFC!... ^_- Cheers, Roland On 2009/09/30 11:24:32, Roland wrote: > On 2009/09/30 05:10:13, darin wrote: ...
11 years, 2 months ago (2009-10-13 11:58:46 UTC) #7
Roland
Addendum about testing that a NPObject is indeed a range: what seems to work is ...
11 years, 2 months ago (2009-10-13 14:35:36 UTC) #8
Roland Steiner
After a great starting point tip from dglazkov, I uploaded a (hopefully) finalized version of ...
11 years, 1 month ago (2009-11-04 12:23:55 UTC) #9
darin (slow to review)
http://codereview.chromium.org/243032/diff/14001/14005 File webkit/api/public/WebBindings.h (right): http://codereview.chromium.org/243032/diff/14001/14005#newcode131 Line 131: WEBKIT_API static bool getDragData(NPObject* event, int* eventId, WebDragData* ...
11 years, 1 month ago (2009-11-04 17:31:15 UTC) #10
Roland Steiner
Uploaded a new patch set that addresses the requested code changes.
11 years, 1 month ago (2009-11-05 05:35:21 UTC) #11
dglazkov
LGTM w/nits: http://codereview.chromium.org/243032/diff/15014/14023 File webkit/api/public/WebRange.h (right): http://codereview.chromium.org/243032/diff/15014/14023#newcode65 Line 65: // non-JS methods No need for ...
11 years, 1 month ago (2009-11-05 21:29:45 UTC) #12
Roland Steiner
11 years, 1 month ago (2009-11-06 04:00:08 UTC) #13
On 2009/11/05 21:29:45, Dimitri Glazkov wrote:
> LGTM w/nits:
> 
> http://codereview.chromium.org/243032/diff/15014/14025#newcode106
> Line 106: 
> No need to touch this file anymore, right? You can just remove it from this
> patch.

Yes - I thought that that was an obviously missing functionality, but perhaps
it's better to keep it for another CL.

Uploaded a new patch set with the requested changes for try bots and posterity.

Powered by Google App Engine
This is Rietveld 408576698