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

Issue 103293004: No touch handles when Views textfield cannot get focused (Closed)

Created:
7 years ago by mohsen
Modified:
6 years, 4 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
Visibility:
Public.

Description

No touch handles when Views textfield cannot get focused Whenever a Views textfield is going to show touch handles, it should first check that it has focus or not. If not, the handles should not be shown. This might be because the textfield is disabled or it is explicitly set to be non-focusable, among other reasons. BUG=323956 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289137

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated after r288781 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -0 lines) Patch
M ui/views/controls/textfield/textfield.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 2 chunks +46 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mohsen
Please take a look.
7 years ago (2013-12-04 01:05:38 UTC) #1
sky
https://codereview.chromium.org/103293004/diff/1/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://codereview.chromium.org/103293004/diff/1/ui/views/controls/textfield/native_textfield_views.cc#newcode1522 ui/views/controls/textfield/native_textfield_views.cc:1522: if (!textfield_->IsFocusable() || !textfield_->HasFocus()) Why do you need to ...
7 years ago (2013-12-04 03:56:06 UTC) #2
mohsen
https://codereview.chromium.org/103293004/diff/1/ui/views/controls/textfield/native_textfield_views.cc File ui/views/controls/textfield/native_textfield_views.cc (right): https://codereview.chromium.org/103293004/diff/1/ui/views/controls/textfield/native_textfield_views.cc#newcode1522 ui/views/controls/textfield/native_textfield_views.cc:1522: if (!textfield_->IsFocusable() || !textfield_->HasFocus()) On 2013/12/04 03:56:06, sky wrote: ...
7 years ago (2013-12-04 05:22:22 UTC) #3
sky
Again, why does it matter? The view has focus. -Scott On Tue, Dec 3, 2013 ...
7 years ago (2013-12-04 14:31:33 UTC) #4
sky
I'll also say that if a view has focus and is disabled it should give ...
7 years ago (2013-12-04 14:31:54 UTC) #5
mohsen
On 2013/12/04 14:31:54, sky wrote: > I'll also say that if a view has focus ...
7 years ago (2013-12-04 17:28:45 UTC) #6
sky
On Wed, Dec 4, 2013 at 9:28 AM, <mohsen@chromium.org> wrote: > On 2013/12/04 14:31:54, sky ...
7 years ago (2013-12-04 21:24:16 UTC) #7
mohsen
On 2013/12/04 21:24:16, sky wrote: > On Wed, Dec 4, 2013 at 9:28 AM, <mailto:mohsen@chromium.org> ...
7 years ago (2013-12-06 23:08:11 UTC) #8
mohsen
Now that https://codereview.chromium.org/108063004/ is landed, this CL is ready for review. Please take a look...
6 years, 4 months ago (2014-08-12 04:22:56 UTC) #9
sky
LGTM
6 years, 4 months ago (2014-08-12 13:16:31 UTC) #10
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 4 months ago (2014-08-12 13:20:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/103293004/60001
6 years, 4 months ago (2014-08-12 13:21:50 UTC) #12
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_x64_rel on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-12 20:03:30 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 00:40:56 UTC) #14
Message was sent while issue was closed.
Change committed as 289137

Powered by Google App Engine
This is Rietveld 408576698