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

Issue 497004: Add gfx::Insets::ToString(). (Closed)

Created:
11 years ago by satorux1
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews_googlegroups.com, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add gfx::Insets::ToString(). This will be useful for debugging views and views applications (I needed this when I was debugging my views application). Along the way, added tests for Insets. TEST=added tests; app_unittests; try BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=34650

Patch Set 1 #

Patch Set 2 : use operator== and operator!= explicitly #

Patch Set 3 : Changed it to ToString() #

Patch Set 4 : fix includes order #

Total comments: 2

Patch Set 5 : fix a line break #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -1 line) Patch
M app/app.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M app/app_base.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M app/gfx/insets.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
A app/gfx/insets.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
A app/gfx/insets_unittest.cc View 1 2 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
satorux1
11 years ago (2009-12-14 05:55:10 UTC) #1
sky
On 2009/12/14 05:55:10, satorux1 wrote: > For the same reasons we didn't add this operator ...
11 years ago (2009-12-14 19:58:28 UTC) #2
satorux1
On 2009/12/14 19:58:28, sky wrote: > On 2009/12/14 05:55:10, satorux1 wrote: > > > > ...
11 years ago (2009-12-14 23:47:52 UTC) #3
sky
I cc'd you on the email to Andrew about this. Search for the thread, "Overloading ...
11 years ago (2009-12-14 23:58:38 UTC) #4
satorux1
Thanks. I missed the thread. I agree that violating the style guide is not great. ...
11 years ago (2009-12-15 00:34:42 UTC) #5
satorux1
Changed it to ToString(). Could you have another look? On 2009/12/15 00:34:42, satorux1 wrote: > ...
11 years ago (2009-12-15 01:43:19 UTC) #6
sky
LGTM http://codereview.chromium.org/497004/diff/5008/5011 File app/gfx/insets.cc (right): http://codereview.chromium.org/497004/diff/5008/5011#newcode6 app/gfx/insets.cc:6: #include "base/string_util.h" nit: newline between lines 5 and ...
11 years ago (2009-12-15 16:44:13 UTC) #7
satorux1
11 years ago (2009-12-15 23:46:01 UTC) #8
Thank you for the review.

Fixed the line break.
Will submit after running try again.

http://codereview.chromium.org/497004/diff/5008/5011
File app/gfx/insets.cc (right):

http://codereview.chromium.org/497004/diff/5008/5011#newcode6
app/gfx/insets.cc:6: #include "base/string_util.h"
On 2009/12/15 16:44:13, sky wrote:
> nit: newline between lines 5 and 6.

Done.

Powered by Google App Engine
This is Rietveld 408576698