No touch handles when Views textfield cannot get focused
commit6f6544eb8ac3ee300e7a3c701d2573664a851fa4
authormohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 00:40:36 +0000 (13 00:40 +0000)
committermohsen@chromium.org <mohsen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 13 Aug 2014 00:42:37 +0000 (13 00:42 +0000)
treee79d98d788807fe4fd10ce83f8a152d905f55789
parentd76975bbb3870f44c2316776bc69718622aa89f5
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

Review URL: https://codereview.chromium.org/103293004

Cr-Commit-Position: refs/heads/master@{#289137}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289137 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/controls/textfield/textfield.cc
ui/views/controls/textfield/textfield_unittest.cc