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

Issue 6598014: Adding break iterator support to the i18n api extension.... (Closed)

Created:
9 years, 10 months ago by Nebojša Ćirić
Modified:
9 years, 7 months ago
CC:
v8-dev, gabor_google.com
Visibility:
Public.

Description

Adding break iterator support to the i18n api extension. This is vendor specific, and is prefixed by v8. WebKit layout tests will be added in a separate CL. Committed: http://code.google.com/p/v8/source/detail?r=7006

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -0 lines) Patch
A src/extensions/experimental/break-iterator.h View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
A src/extensions/experimental/break-iterator.cc View 1 2 3 4 5 1 chunk +229 lines, -0 lines 0 comments Download
M src/extensions/experimental/experimental.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M src/extensions/experimental/i18n-extension.cc View 1 2 3 4 3 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nebojša Ćirić
Mads, please take a close look at MakeWeak/Delete logic. Also, I would like to check ...
9 years, 10 months ago (2011-02-25 23:05:47 UTC) #1
jungshik at Google
Thank you for the CL. Below are some comments. http://codereview.chromium.org/6598014/diff/1/src/extensions/experimental/break-iterator.cc File src/extensions/experimental/break-iterator.cc (right): http://codereview.chromium.org/6598014/diff/1/src/extensions/experimental/break-iterator.cc#newcode63 src/extensions/experimental/break-iterator.cc:63: ...
9 years, 10 months ago (2011-02-26 00:31:38 UTC) #2
Nebojša Ćirić
I'll make code changes and get back to you on the rest... http://codereview.chromium.org/6598014/diff/1/src/extensions/experimental/break-iterator.cc File src/extensions/experimental/break-iterator.cc ...
9 years, 10 months ago (2011-02-26 00:47:45 UTC) #3
Nebojša Ćirić
If we decide we need line and sentence break types we can add them later, ...
9 years, 10 months ago (2011-02-26 01:13:17 UTC) #4
Mads Ager (chromium)
This is headed in the right direction on the use of the V8 API. There ...
9 years, 9 months ago (2011-02-28 13:03:32 UTC) #5
Nebojša Ćirić
I've chatted with Mads today to make sure FunctionTemplate would work for me. It actually ...
9 years, 9 months ago (2011-02-28 20:42:41 UTC) #6
jungshik at Google
lgtm http://codereview.chromium.org/6598014/diff/6007/src/extensions/experimental/break-iterator.cc File src/extensions/experimental/break-iterator.cc (right): http://codereview.chromium.org/6598014/diff/6007/src/extensions/experimental/break-iterator.cc#newcode33 src/extensions/experimental/break-iterator.cc:33: #include "unicode/uloc.h" nit: You don't need this here, ...
9 years, 9 months ago (2011-02-28 23:02:24 UTC) #7
Nebojša Ćirić
http://codereview.chromium.org/6598014/diff/6007/src/extensions/experimental/break-iterator.cc File src/extensions/experimental/break-iterator.cc (right): http://codereview.chromium.org/6598014/diff/6007/src/extensions/experimental/break-iterator.cc#newcode33 src/extensions/experimental/break-iterator.cc:33: #include "unicode/uloc.h" On 2011/02/28 23:02:24, Jungshik Shin wrote: > ...
9 years, 9 months ago (2011-02-28 23:52:57 UTC) #8
Mads Ager (chromium)
Getting really close. One type checking thing and then we are ready to land. :) ...
9 years, 9 months ago (2011-03-01 09:10:14 UTC) #9
Nebojša Ćirić
All done. Thanks for the review! I'll have to create a new client to land ...
9 years, 9 months ago (2011-03-01 17:15:15 UTC) #10
Mads Ager (chromium)
LGTM with a couple of comment nits. http://codereview.chromium.org/6598014/diff/6013/src/extensions/experimental/break-iterator.cc File src/extensions/experimental/break-iterator.cc (right): http://codereview.chromium.org/6598014/diff/6013/src/extensions/experimental/break-iterator.cc#newcode54 src/extensions/experimental/break-iterator.cc:54: // First ...
9 years, 9 months ago (2011-03-01 18:58:32 UTC) #11
Nebojša Ćirić
9 years, 9 months ago (2011-03-01 19:09:12 UTC) #12
Thanks. I kept the comments long for educational purposes :)

http://codereview.chromium.org/6598014/diff/6013/src/extensions/experimental/...
File src/extensions/experimental/break-iterator.cc (right):

http://codereview.chromium.org/6598014/diff/6013/src/extensions/experimental/...
src/extensions/experimental/break-iterator.cc:54: // First delete the hidden C++
object. Deleting NULL is ok.
On 2011/03/01 18:58:32, Mads Ager wrote:
> Unpacking should never give NULL here. That will only happen if you use this
as
> the weak callback for persistent handles not pointing to a break iterator.
Maybe
> update the comment with that info instead?

Done.

http://codereview.chromium.org/6598014/diff/6013/src/extensions/experimental/...
src/extensions/experimental/break-iterator.cc:61: // Returns a ThrowException
value in case we encounter invalid
On 2011/03/01 18:58:32, Mads Ager wrote:
> ThrowException returns undefined and schedules an exception to be thrown
(which
> means that the undefined is ignored and the stack unwinded). Change the
comment:
> "Returns a ThrowEception value" -> "Throws an exception"?

Done.

Powered by Google App Engine
This is Rietveld 408576698