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

Issue 297733002: Deactivate omnibox touch editing on command execution (Closed)

Created:
6 years, 7 months ago by mohsen
Modified:
6 years, 7 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

Deactivate omnibox touch editing on command execution A Views textfield hides touch text selection handles on command execution. Omnibox overrides command execution for some commands without calling textfield's implementation; so, it needs to hide the handles for those commands. Also, introduced TextfieldTestApi class for accessing private members of Textfield class in tests. BUG=373532 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272569

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added test api for textfield #

Total comments: 13

Patch Set 3 : Applied review comments #

Patch Set 4 : Removed VIEWS_EXPORT from test api #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -45 lines) Patch
M chrome/browser/ui/views/omnibox/omnibox_view_views.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_views_browsertest.cc View 1 3 chunks +35 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.h View 1 2 2 chunks +1 line, -7 lines 0 comments Download
A ui/views/controls/textfield/textfield_test_api.h View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A ui/views/controls/textfield/textfield_test_api.cc View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_unittest.cc View 1 11 chunks +18 lines, -19 lines 0 comments Download
M ui/views/touchui/touch_selection_controller_impl_unittest.cc View 1 6 chunks +9 lines, -5 lines 0 comments Download
M ui/views/views.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 3 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mohsen
Please take a look...
6 years, 7 months ago (2014-05-20 20:07:56 UTC) #1
sky
https://codereview.chromium.org/297733002/diff/1/ui/views/controls/textfield/textfield.h File ui/views/controls/textfield/textfield.h (right): https://codereview.chromium.org/297733002/diff/1/ui/views/controls/textfield/textfield.h#newcode306 ui/views/controls/textfield/textfield.h:306: friend class ::OmniboxViewViewsTest; Ick. How about exposing a class, ...
6 years, 7 months ago (2014-05-20 20:58:13 UTC) #2
mohsen
Please take a look. I have created a TestApi class for Textfield. Do I need ...
6 years, 7 months ago (2014-05-21 14:47:48 UTC) #3
sky
You don't need to put the file in the test directory. https://codereview.chromium.org/297733002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): ...
6 years, 7 months ago (2014-05-21 16:20:45 UTC) #4
mohsen
https://codereview.chromium.org/297733002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc File chrome/browser/ui/views/omnibox/omnibox_view_views.cc (right): https://codereview.chromium.org/297733002/diff/60001/chrome/browser/ui/views/omnibox/omnibox_view_views.cc#newcode319 chrome/browser/ui/views/omnibox/omnibox_view_views.cc:319: DestroyTouchSelection(); On 2014/05/21 16:20:45, sky wrote: > Add a ...
6 years, 7 months ago (2014-05-21 19:54:28 UTC) #5
sky
LGTM
6 years, 7 months ago (2014-05-21 21:02:02 UTC) #6
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 7 months ago (2014-05-21 21:47:31 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/297733002/80001
6 years, 7 months ago (2014-05-21 21:51:47 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 06:11:17 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 09:09:52 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/9696)
6 years, 7 months ago (2014-05-22 09:09:52 UTC) #11
mohsen
Can you take another look, please... https://codereview.chromium.org/297733002/diff/60001/ui/views/controls/textfield/textfield_test_api.h File ui/views/controls/textfield/textfield_test_api.h (right): https://codereview.chromium.org/297733002/diff/60001/ui/views/controls/textfield/textfield_test_api.h#newcode13 ui/views/controls/textfield/textfield_test_api.h:13: class TextfieldTestApi { ...
6 years, 7 months ago (2014-05-22 14:53:23 UTC) #12
sky
Ok, LGTM
6 years, 7 months ago (2014-05-23 17:53:58 UTC) #13
mohsen
The CQ bit was checked by mohsen@chromium.org
6 years, 7 months ago (2014-05-23 17:58:31 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mohsen@chromium.org/297733002/100001
6 years, 7 months ago (2014-05-23 17:59:38 UTC) #15
commit-bot: I haz the power
6 years, 7 months ago (2014-05-23 18:49:50 UTC) #16
Message was sent while issue was closed.
Change committed as 272569

Powered by Google App Engine
This is Rietveld 408576698