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 7265011: RenderText API Outline. (Closed)

Created:
9 years, 6 months ago by msw
Modified:
9 years, 5 months ago
Reviewers:
vtl, oshima, xji, viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

Add gfx::RenderText and support code. RenderText is NativeTextFieldViews' interface to platform-specific text rendering engines. This change doesn't hook in any new Pango or Uniscribe functionality, it will just setup the necessary API. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93840 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=93855

Patch Set 1 #

Patch Set 2 : Add some placeholder functionality on Windows. #

Total comments: 14

Patch Set 3 : Hook up temporary Win32 rendering, fix up some style code. #

Patch Set 4 : Almost at parity with the current implementation. #

Total comments: 6

Patch Set 5 : Address comments, add RenderTextTest, set read-only/composition/selection styles, cleanup. #

Patch Set 6 : Exclude Mac, fix font comparison. #

Total comments: 9

Patch Set 7 : Add TODO comments, revise cursor movement API, etc. #

Total comments: 40

Patch Set 8 : Address comments. #

Patch Set 9 : Fix permissions, export RenderText and StyleRange via UI_API. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1643 lines, -1613 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.h View 1 2 3 4 3 chunks +0 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 3 4 5 6 7 6 chunks +23 lines, -35 lines 0 comments Download
A ui/gfx/render_text.h View 1 2 3 4 5 6 7 8 1 chunk +224 lines, -0 lines 0 comments Download
A ui/gfx/render_text.cc View 1 2 3 4 5 6 7 8 1 chunk +506 lines, -0 lines 0 comments Download
A ui/gfx/render_text_linux.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A ui/gfx/render_text_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
A ui/gfx/render_text_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +180 lines, -0 lines 0 comments Download
A ui/gfx/render_text_win.h View 1 2 3 4 5 6 7 8 1 chunk +25 lines, -0 lines 0 comments Download
A ui/gfx/render_text_win.cc View 1 2 3 4 5 6 7 8 1 chunk +20 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 1 comment Download
M ui/ui_unittests.gypi View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M views/controls/textfield/native_textfield_gtk.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M views/controls/textfield/native_textfield_gtk.cc View 1 2 3 4 1 chunk +2 lines, -8 lines 0 comments Download
M views/controls/textfield/native_textfield_views.h View 1 2 3 4 5 6 5 chunks +5 lines, -27 lines 0 comments Download
M views/controls/textfield/native_textfield_views.cc View 1 2 3 4 5 6 7 30 chunks +87 lines, -208 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 1 2 3 4 3 chunks +5 lines, -5 lines 0 comments Download
M views/controls/textfield/native_textfield_win.h View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 1 2 3 4 1 chunk +2 lines, -8 lines 0 comments Download
M views/controls/textfield/native_textfield_wrapper.h View 1 2 3 3 chunks +6 lines, -11 lines 0 comments Download
D views/controls/textfield/text_style.h View 1 2 3 1 chunk +0 lines, -65 lines 0 comments Download
D views/controls/textfield/text_style.cc View 1 2 3 1 chunk +0 lines, -54 lines 0 comments Download
M views/controls/textfield/textfield.h View 1 2 3 3 chunks +12 lines, -19 lines 0 comments Download
M views/controls/textfield/textfield.cc View 1 2 3 1 chunk +4 lines, -10 lines 0 comments Download
M views/controls/textfield/textfield_views_model.h View 1 2 3 4 5 6 7 11 chunks +20 lines, -102 lines 0 comments Download
M views/controls/textfield/textfield_views_model.cc View 1 2 3 4 5 6 7 22 chunks +98 lines, -424 lines 0 comments Download
M views/controls/textfield/textfield_views_model_unittest.cc View 1 2 3 4 5 6 20 chunks +336 lines, -586 lines 0 comments Download
M views/examples/textfield_example.h View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M views/examples/textfield_example.cc View 1 2 3 3 chunks +18 lines, -18 lines 0 comments Download
M views/views.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
xji
Thanks for writing this up! http://codereview.chromium.org/7265011/diff/2001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7265011/diff/2001/ui/gfx/render_text.cc#newcode289 ui/gfx/render_text.cc:289: // TODO(msw): Doesn't this ...
9 years, 5 months ago (2011-07-01 18:29:44 UTC) #1
msw
Thanks for taking a look, things are still in great flux; I hope to make ...
9 years, 5 months ago (2011-07-01 21:52:15 UTC) #2
xji
On 2011/07/01 21:52:15, msw wrote: > Thanks for taking a look, things are still in ...
9 years, 5 months ago (2011-07-07 23:51:26 UTC) #3
xji
http://codereview.chromium.org/7265011/diff/2001/ui/gfx/render_text.h#newcode26 > > ui/gfx/render_text.h:26: ui::Range range; > > On 2011/07/01 18:29:44, xji wrote: > > ...
9 years, 5 months ago (2011-07-08 00:02:01 UTC) #4
msw
FYI, I made some minor progress.
9 years, 5 months ago (2011-07-14 20:51:56 UTC) #5
msw
[+oshima] Take a look at my current status on shuffling the text code around. There's ...
9 years, 5 months ago (2011-07-14 21:23:01 UTC) #6
oshima
Looking good, thanks mike! I may separate Cursor class from RenderText, but we can wait ...
9 years, 5 months ago (2011-07-15 21:21:36 UTC) #7
msw
Please review and invite others as necessary, thanks! http://codereview.chromium.org/7265011/diff/13001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7265011/diff/13001/ui/gfx/render_text.cc#newcode226 ui/gfx/render_text.cc:226: const ...
9 years, 5 months ago (2011-07-19 07:11:21 UTC) #8
xji
http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.cc#newcode283 ui/gfx/render_text.cc:283: return base::i18n::LEFT_TO_RIGHT; why do we need this? and why ...
9 years, 5 months ago (2011-07-20 01:33:33 UTC) #9
msw
Thanks for the feedback, let's continue our discussion tomorrow. http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.cc File ui/gfx/render_text.cc (right): http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.cc#newcode283 ui/gfx/render_text.cc:283: ...
9 years, 5 months ago (2011-07-20 09:22:46 UTC) #10
xji
9 years, 5 months ago (2011-07-20 19:51:52 UTC) #11
xji
http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.h#newcode159 ui/gfx/render_text.h:159: ui::Range selection_range_; On 2011/07/20 09:22:46, msw wrote: > On ...
9 years, 5 months ago (2011-07-20 19:59:36 UTC) #12
msw
Please take a look, thanks! http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.h#newcode159 ui/gfx/render_text.h:159: ui::Range selection_range_; On 2011/07/20 ...
9 years, 5 months ago (2011-07-21 00:19:55 UTC) #13
xji
LGTM. Thanks, Michael!
9 years, 5 months ago (2011-07-21 17:16:03 UTC) #14
msw
oshima: ping!
9 years, 5 months ago (2011-07-21 17:59:48 UTC) #15
xji
http://codereview.chromium.org/7265011/diff/41004/ui/gfx/render_text.h File ui/gfx/render_text.h (right): http://codereview.chromium.org/7265011/diff/41004/ui/gfx/render_text.h#newcode85 ui/gfx/render_text.h:85: bool get_cursor_visible() { return is_cursor_visible_; } bool get_cursor_visible() const ...
9 years, 5 months ago (2011-07-21 20:02:08 UTC) #16
oshima
LGTM, once you address comments. No need to wait for anther LGTM. http://codereview.chromium.org/7265011/diff/32001/ui/gfx/render_text.h File ui/gfx/render_text.h ...
9 years, 5 months ago (2011-07-23 09:51:12 UTC) #17
msw
Comments addressed, landing. http://codereview.chromium.org/7265011/diff/41004/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): http://codereview.chromium.org/7265011/diff/41004/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode637 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:637: if (emphasize) { On 2011/07/23 09:51:12, ...
9 years, 5 months ago (2011-07-25 05:09:53 UTC) #18
xji
On 2011/07/20 09:22:46, msw wrote: > On 2011/07/20 01:33:33, xji wrote: > > So, the ...
9 years, 5 months ago (2011-07-25 20:42:59 UTC) #19
msw
Trung, this landed (r93855), but could you review .gyp[i]s? ui/ui.gyp ui/ui_unittests.gypi views/views.gyp I'm curious, since ...
9 years, 5 months ago (2011-07-27 08:31:44 UTC) #20
viettrungluu
9 years, 5 months ago (2011-07-27 17:10:28 UTC) #21
http://codereview.chromium.org/7265011/diff/46004/ui/ui.gyp
File ui/ui.gyp (right):

http://codereview.chromium.org/7265011/diff/46004/ui/ui.gyp#newcode407
ui/ui.gyp:407: ['exclude', '^gfx/render_text.cc'],
Don't do this. Each of these regexes needs to be applied to each element of the
sources list. (Plus the '.'s match anything and theoretically these regexes
would also match filenames with more stuff appended.)

Use a 'sources!' list (see other examples in this file).

Powered by Google App Engine
This is Rietveld 408576698