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

Issue 177683005: Clip Views textfield drag images to selected text. (Closed)

Created:
6 years, 9 months ago by msw
Modified:
6 years, 9 months ago
Reviewers:
sky
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, penghuang+watch_chromium.org, nona+watch_chromium.org, James Su, Elliot Glaysher
Visibility:
Public.

Description

Clip Views textfield drag images to selected text. Paint views::Textfield drag images with views::Labels. Makes the drag image fit the size of the selected text. (not as wide as the origin Omnibox/textfield itself) Use an offset for the image similar to the Unity desktop. This changes the appearance of split-selection BiDi text. (doesn't show blank area between the visually split text) See before/after pictures at http://crbug.com/349105 Remove now unused RenderText::DrawSelectedTextForDrag. BUG=349105 TEST=Linux Aura and ChromeOS text drag images look good. R=sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255310

Patch Set 1 #

Patch Set 2 : Finish implementation; cleanup. #

Patch Set 3 : Implement with a Label; cleanup. #

Patch Set 4 : Support transparency in ChromeOS. #

Total comments: 4

Patch Set 5 : Clamp canvas size; remove static keyword. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -54 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/render_text.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/gfx/render_text.cc View 1 2 1 chunk +0 lines, -23 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 3 chunks +36 lines, -26 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
msw
Hey Scott, please take a look; thanks!
6 years, 9 months ago (2014-03-05 21:56:34 UTC) #1
sky
https://codereview.chromium.org/177683005/diff/100001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/177683005/diff/100001/ui/views/controls/textfield/textfield.cc#newcode851 ui/views/controls/textfield/textfield.cc:851: label.SetBoundsRect(gfx::Rect(label.GetPreferredSize())); Should this be capped in anyway? What if ...
6 years, 9 months ago (2014-03-05 23:28:43 UTC) #2
msw
https://codereview.chromium.org/177683005/diff/100001/ui/views/controls/textfield/textfield.cc File ui/views/controls/textfield/textfield.cc (right): https://codereview.chromium.org/177683005/diff/100001/ui/views/controls/textfield/textfield.cc#newcode851 ui/views/controls/textfield/textfield.cc:851: label.SetBoundsRect(gfx::Rect(label.GetPreferredSize())); On 2014/03/05 23:28:43, sky wrote: > Should this ...
6 years, 9 months ago (2014-03-06 00:00:42 UTC) #3
sky
Ok, LGTM
6 years, 9 months ago (2014-03-06 00:02:35 UTC) #4
msw
The CQ bit was checked by msw@chromium.org
6 years, 9 months ago (2014-03-06 00:21:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/177683005/140001
6 years, 9 months ago (2014-03-06 00:25:23 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-06 01:34:38 UTC) #7
commit-bot: I haz the power
Retried try job too often on win for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=156180
6 years, 9 months ago (2014-03-06 01:34:38 UTC) #8
msw
The CQ bit was checked by msw@chromium.org
6 years, 9 months ago (2014-03-06 01:54:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/177683005/140001
6 years, 9 months ago (2014-03-06 01:55:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/177683005/140001
6 years, 9 months ago (2014-03-06 02:59:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/177683005/140001
6 years, 9 months ago (2014-03-06 03:20:45 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 10:59:44 UTC) #13
Message was sent while issue was closed.
Change committed as 255310

Powered by Google App Engine
This is Rietveld 408576698