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

Issue 2952763002: SearchBoxView now enables/disables cursor based on user interaction. (Closed)

Created:
3 years, 6 months ago by newcomer
Modified:
3 years, 5 months ago
Reviewers:
xiyuan, vadimt, oshima, khmel
CC:
chromium-reviews, yusukes+watch_chromium.org, tfarina, shuchen+watch_chromium.org, nona+watch_chromium.org, James Su, Matt Giuca, weidongg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

SearchBoxView now enables/disables cursor based on user interaction. Updates to Integration Tests to test new searchbox behavior. Added searchbox tests to the mus/mash filters. Added HandleGestureEvent to TextfieldController. Searchbox behavior added: The searchbox now has an active/inactive state. If the searchbox is inactive and is clicked/tapped, it activates. UX CHANGES: If the searchbox is Active and the user taps/clicks and the event propogates back to the AppListView, the SearchBox clears and the searchbox becomes inactive, transitioning to PEEKING or FULLSCREEN_ALL_APPS. If the searchbox is inactive and the user taps/clicks and the event propogates back to the AppListView, the widget closes. Also in this CL: Mouse drag has been disabled. Tests updated to reflect change in behavior of the app list. BUG=735117 Review-Url: https://codereview.chromium.org/2952763002 Cr-Commit-Position: refs/heads/master@{#485749} Committed: https://chromium.googlesource.com/chromium/src/+/ef1c07cf957e1b3ca050dec3a003c4d960cde442

Patch Set 1 : SearchBoxView now enables/disables cursor based on user interaction. #

Total comments: 2

Patch Set 2 : SearchBoxView now enables/disables cursor based on user interaction. #

Total comments: 20

Patch Set 3 : Responded to comments #

Total comments: 20

Patch Set 4 : SearchBoxView now enables/disables cursor based on user interaction. #

Total comments: 2

Patch Set 5 : Addressed Comments, refactored. #

Total comments: 16

Patch Set 6 : SearchBoxView now enables/disables cursor based on user interaction. #

Total comments: 9

Patch Set 7 : Responded to comments #

Patch Set 8 : SearchBoxView now enables/disables cursor based on user interaction. #

Total comments: 22

Patch Set 9 : SearchBoxView now enables/disables cursor based on user interaction. #

Patch Set 10 : Removed filters that are going to dissapear anyways after rebase. #

Total comments: 10

Patch Set 11 : addressed comments. #

Patch Set 12 : rebased #

Patch Set 13 : rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -105 lines) Patch
M ash/app_list/app_list_presenter_delegate_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 18 chunks +247 lines, -66 lines 0 comments Download
M testing/buildbot/filters/ash_unittests_mash.filter View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +15 lines, -10 lines 0 comments Download
M ui/app_list/views/app_list_view.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +10 lines, -2 lines 0 comments Download
M ui/app_list/views/app_list_view.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +35 lines, -9 lines 0 comments Download
M ui/app_list/views/search_box_view.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +33 lines, -9 lines 0 comments Download
M ui/app_list/views/search_box_view.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +86 lines, -7 lines 0 comments Download
M ui/app_list/views/search_result_page_view.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/controls/textfield/textfield_controller.h View 1 2 3 2 chunks +9 lines, -2 lines 0 comments Download
M ui/views/controls/textfield/textfield_controller.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 100 (72 generated)
newcomer
PTAL! -Alex
3 years, 6 months ago (2017-06-21 16:24:51 UTC) #4
vadimt
https://codereview.chromium.org/2952763002/diff/40001/ui/app_list/views/search_box_view.h File ui/app_list/views/search_box_view.h (right): https://codereview.chromium.org/2952763002/diff/40001/ui/app_list/views/search_box_view.h#newcode85 ui/app_list/views/search_box_view.h:85: bool is_cursor_enabled() { return is_cursor_enabled_; } const
3 years, 6 months ago (2017-06-21 17:44:56 UTC) #5
newcomer
Quick fix
3 years, 6 months ago (2017-06-21 17:45:03 UTC) #6
newcomer
PTAL! -Alex https://codereview.chromium.org/2952763002/diff/40001/ui/app_list/views/search_box_view.h File ui/app_list/views/search_box_view.h (right): https://codereview.chromium.org/2952763002/diff/40001/ui/app_list/views/search_box_view.h#newcode85 ui/app_list/views/search_box_view.h:85: bool is_cursor_enabled() { return is_cursor_enabled_; } On ...
3 years, 6 months ago (2017-06-21 20:53:26 UTC) #10
vadimt
https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.cc#newcode357 ui/app_list/views/search_box_view.cc:357: bool SearchBoxView::PassMouseEventForTesting(ui::MouseEvent& mouse_event) { I assume you tried to ...
3 years, 6 months ago (2017-06-22 00:53:08 UTC) #11
newcomer
Responded to comments! https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.cc#newcode357 ui/app_list/views/search_box_view.cc:357: bool SearchBoxView::PassMouseEventForTesting(ui::MouseEvent& mouse_event) { On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 16:17:22 UTC) #12
vadimt
https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.h File ui/app_list/views/search_box_view.h (right): https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.h#newcode150 ui/app_list/views/search_box_view.h:150: bool is_cursor_enabled_; And the preferred way is to initialize ...
3 years, 6 months ago (2017-06-22 22:47:41 UTC) #13
newcomer
Addressed comments! -Alex https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.h File ui/app_list/views/search_box_view.h (right): https://codereview.chromium.org/2952763002/diff/120001/ui/app_list/views/search_box_view.h#newcode150 ui/app_list/views/search_box_view.h:150: bool is_cursor_enabled_; On 2017/06/22 22:47:40, vadimt ...
3 years, 6 months ago (2017-06-23 23:59:37 UTC) #26
vadimt
lgtm + Spend reasonable effort to pass app list view to test search box instance. ...
3 years, 6 months ago (2017-06-24 00:31:17 UTC) #27
newcomer
Oshima, Xiyuan, PTAL. -Alex https://codereview.chromium.org/2952763002/diff/320001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/2952763002/diff/320001/ui/app_list/views/search_box_view.cc#newcode345 ui/app_list/views/search_box_view.cc:345: void SearchBoxView::SetSearchBoxActive(bool active) { On ...
3 years, 5 months ago (2017-06-27 22:12:49 UTC) #37
xiyuan
https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/search_box_view.cc File ui/app_list/views/search_box_view.cc (right): https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/search_box_view.cc#newcode395 ui/app_list/views/search_box_view.cc:395: app_list_view_->SetState(AppListView::CLOSED); It seems we want to dismiss app list ...
3 years, 5 months ago (2017-06-27 23:11:10 UTC) #38
oshima
https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/app_list_view.h File ui/app_list/views/app_list_view.h (right): https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/app_list_view.h#newcode99 ui/app_list/views/app_list_view.h:99: SearchBoxView* search_box_view() const { return search_box_view_; } non const ...
3 years, 5 months ago (2017-06-29 16:58:50 UTC) #39
newcomer
Thanks for the comments! PTAL. -Alex https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/app_list_view.h File ui/app_list/views/app_list_view.h (right): https://codereview.chromium.org/2952763002/diff/430001/ui/app_list/views/app_list_view.h#newcode99 ui/app_list/views/app_list_view.h:99: SearchBoxView* search_box_view() const ...
3 years, 5 months ago (2017-06-30 21:47:23 UTC) #54
oshima
https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode288 ash/app_list/app_list_presenter_delegate_unittest.cc:288: EnableFullscreenAppList(); If you enable it anyway, why this has ...
3 years, 5 months ago (2017-07-05 19:11:59 UTC) #55
newcomer
Thanks Oshima@! Responded to comments. https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode288 ash/app_list/app_list_presenter_delegate_unittest.cc:288: EnableFullscreenAppList(); On 2017/07/05 19:11:59, ...
3 years, 5 months ago (2017-07-05 22:03:58 UTC) #56
oshima
https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/650001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode288 ash/app_list/app_list_presenter_delegate_unittest.cc:288: EnableFullscreenAppList(); On 2017/07/05 22:03:57, newcomer wrote: > On 2017/07/05 ...
3 years, 5 months ago (2017-07-06 16:04:12 UTC) #57
newcomer
Added new class, FullscreenAppListPresenterDelegateTest, which always enables the fullscreen app list feature.
3 years, 5 months ago (2017-07-06 17:02:46 UTC) #58
newcomer
Added Patchset 9 which changes the names of the tests in the filters to match ...
3 years, 5 months ago (2017-07-06 17:16:44 UTC) #59
oshima
https://codereview.chromium.org/2952763002/diff/710001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (left): https://codereview.chromium.org/2952763002/diff/710001/ash/app_list/app_list_presenter_delegate_unittest.cc#oldcode54 ash/app_list/app_list_presenter_delegate_unittest.cc:54: EnableFullscreenAppList(); Please keep this logic. Looks like you don't ...
3 years, 5 months ago (2017-07-06 17:50:18 UTC) #60
oshima
3 years, 5 months ago (2017-07-06 17:50:22 UTC) #61
oshima
Please address these nits and then lgtm https://codereview.chromium.org/2952763002/diff/770001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/770001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode54 ash/app_list/app_list_presenter_delegate_unittest.cc:54: EnableFullscreenAppList(); nit: ...
3 years, 5 months ago (2017-07-06 21:05:51 UTC) #66
newcomer
Khmel@, PTAL! -Alex https://codereview.chromium.org/2952763002/diff/770001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/770001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode54 ash/app_list/app_list_presenter_delegate_unittest.cc:54: EnableFullscreenAppList(); On 2017/07/06 21:05:51, oshima wrote: ...
3 years, 5 months ago (2017-07-10 15:24:12 UTC) #69
khmel
https://codereview.chromium.org/2952763002/diff/830001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/830001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode73 ash/app_list/app_list_presenter_delegate_unittest.cc:73: class FullscreenAppListPresenterDelegateTest nit: not sure, but looks like we ...
3 years, 5 months ago (2017-07-10 15:52:23 UTC) #70
newcomer
khmel@, PTAL! -Alex https://codereview.chromium.org/2952763002/diff/830001/ash/app_list/app_list_presenter_delegate_unittest.cc File ash/app_list/app_list_presenter_delegate_unittest.cc (right): https://codereview.chromium.org/2952763002/diff/830001/ash/app_list/app_list_presenter_delegate_unittest.cc#newcode73 ash/app_list/app_list_presenter_delegate_unittest.cc:73: class FullscreenAppListPresenterDelegateTest On 2017/07/10 15:52:22, khmel ...
3 years, 5 months ago (2017-07-10 16:38:21 UTC) #71
khmel
Thanks! lgtm
3 years, 5 months ago (2017-07-10 16:39:49 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2952763002/930001
3 years, 5 months ago (2017-07-11 21:55:57 UTC) #96
commit-bot: I haz the power
Committed patchset #13 (id:930001) as https://chromium.googlesource.com/chromium/src/+/ef1c07cf957e1b3ca050dec3a003c4d960cde442
3 years, 5 months ago (2017-07-12 00:39:06 UTC) #99
newcomer
3 years, 5 months ago (2017-07-12 15:37:56 UTC) #100
Message was sent while issue was closed.

          

Powered by Google App Engine
This is Rietveld 408576698