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

Issue 6880171: Add two libcros interfaces for handwriting: SendHandwritingStrokes and CancelHandwriting. (Closed)

Created:
9 years, 8 months ago by Yusuke Sato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, mazda
Visibility:
Public.

Description

Add two libcros interfaces for handwriting: SendHandwritingStrokes and CancelHandwriting. BUG=chromium-os:14421 TEST=ran emerge Change-Id: I287abd4d02299cc724f6fd8b9a36c7fc4276f0b0 Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=64ecf8b

Patch Set 1 #

Patch Set 2 : Fix typo #

Patch Set 3 : review #

Total comments: 4

Patch Set 4 : review fix #

Total comments: 3

Patch Set 5 : style fix; changed the function name following zork's suggestion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -1 line) Patch
M SConstruct.chromiumos View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos_input_method.h View 1 2 3 4 2 chunks +15 lines, -0 lines 0 comments Download
M chromeos_input_method.cc View 1 2 3 4 4 chunks +47 lines, -1 line 0 comments Download
M load.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Yusuke Sato
9 years, 8 months ago (2011-04-27 09:32:16 UTC) #1
Zachary Kuznia
http://codereview.chromium.org/6880171/diff/7001/chromeos_input_method.cc File chromeos_input_method.cc (right): http://codereview.chromium.org/6880171/diff/7001/chromeos_input_method.cc#newcode657 chromeos_input_method.cc:657: LOG(WARNING) << "Empty stroke data or a single dot ...
9 years, 8 months ago (2011-04-27 09:45:45 UTC) #2
Yusuke Sato
http://codereview.chromium.org/6880171/diff/7001/chromeos_input_method.cc File chromeos_input_method.cc (right): http://codereview.chromium.org/6880171/diff/7001/chromeos_input_method.cc#newcode657 chromeos_input_method.cc:657: LOG(WARNING) << "Empty stroke data or a single dot ...
9 years, 8 months ago (2011-04-27 10:10:32 UTC) #3
Zachary Kuznia
LGTM On Wed, Apr 27, 2011 at 7:10 PM, <yusukes@chromium.org> wrote: > > http://codereview.chromium.org/6880171/diff/7001/chromeos_input_method.cc > ...
9 years, 8 months ago (2011-04-27 10:18:42 UTC) #4
Peng
LGTM http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc File chromeos_input_method.cc (right): http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc#newcode666 chromeos_input_method.cc:666: const size_t raw_strokes_size = strokes.size() * 2; Maybe ...
9 years, 8 months ago (2011-04-27 14:23:11 UTC) #5
Yusuke Sato
http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc File chromeos_input_method.cc (right): http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc#newcode666 chromeos_input_method.cc:666: const size_t raw_strokes_size = strokes.size() * 2; I know ...
9 years, 7 months ago (2011-05-02 05:22:26 UTC) #6
Peng
9 years, 7 months ago (2011-05-02 14:11:47 UTC) #7
http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc
File chromeos_input_method.cc (right):

http://codereview.chromium.org/6880171/diff/9006/chromeos_input_method.cc#new...
chromeos_input_method.cc:666: const size_t raw_strokes_size = strokes.size() *
2;
On 2011/05/02 05:22:26, Yusuke Sato wrote:
> I know it's safe to use the internal buffer of std::vector as C array, but
what
> about std::pair? The variable is not a vector<double> but
> vector<pair<double,double> >, and as far as I know the C++ standard does not
> guarantee that std::pair's layout is always compatible with C struct. To avoid
> unexpected behavior in the future, let me keep the current code.
> 
> On 2011/04/27 14:23:11, Peng wrote:
> > Maybe we could use ((double*)&strokes[0]) and avoid an additional copy here.
> > 
> > http://stackoverflow.com/questions/2923272/how-to-convert-vector-to-array-c
> > 
> 

Yeah. It needs change pair to double or double[2] to make it safer.

Powered by Google App Engine
This is Rietveld 408576698