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

Issue 2029863002: Refactor ChooserBubbleUiViewDelegate (Closed)

Created:
4 years, 6 months ago by juncai
Modified:
4 years, 6 months ago
CC:
chromium-reviews, tfarina, markusheintz_, msramek+watch_chromium.org, raymes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ChooserBubbleUiViewDelegate This is part 4 of enabling the chooser UIs for Bluetooth from Apps to enable developers to make a transition. Since the chooser content view is the same for WebBluetooth on desktop and Chrome Apps, it is better to pull it out of ChooserBubbleUiViewDelegate and have a class ChooserContentView that can be reused. BUG=616598, 577170, 618618 Committed: https://crrev.com/69d8c2e016d84e8276aee3b7467b5129106af752 Cr-Commit-Position: refs/heads/master@{#399085}

Patch Set 1 : refactored ChooserBubbleUiViewDelegate #

Patch Set 2 : rebase #

Total comments: 17

Patch Set 3 : address comments #

Patch Set 4 : cleaned up code #

Patch Set 5 : removed debug code. #

Patch Set 6 : adjusted view spacing #

Patch Set 7 : added test code #

Patch Set 8 : fixed test errors #

Patch Set 9 : updated test code #

Total comments: 33

Patch Set 10 : address comments #

Patch Set 11 : fixed typo #

Patch Set 12 : renamed table_view accessor to table_view_for_test #

Total comments: 4

Patch Set 13 : added ChooserControllerDestroying() for ChooserTableModel and ChooserContentView #

Patch Set 14 : updated //components/OWNERS #

Patch Set 15 : moved chooser controller destroying to ChooserContentView #

Patch Set 16 : make ChooserContentView::ChooserControllerDestroying a private function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+752 lines, -205 lines) Patch
A chrome/browser/ui/views/chooser_content_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +63 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/chooser_content_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +212 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/chooser_content_view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +310 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h View 1 2 3 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +48 lines, -202 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M components/chooser_controller.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download
M components/chooser_controller/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +18 lines, -0 lines 0 comments Download
A components/chooser_controller/mock_chooser_controller.h View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A components/chooser_controller/mock_chooser_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (11 generated)
juncai
thakis@chromium.org: Please review changes in //chrome/chrome_browser_ui.gypi msw@chromium.org: Please review changes in //chrome/browser/ui/views
4 years, 6 months ago (2016-06-03 01:26:53 UTC) #3
msw
mostly just nits. https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/chooser_content_view.cc#newcode25 chrome/browser/ui/views/chooser_content_view.cc:25: // Chooser width nit: remove comment ...
4 years, 6 months ago (2016-06-03 20:04:09 UTC) #5
Nico
no class but no new test?
4 years, 6 months ago (2016-06-03 20:05:51 UTC) #6
Nico
*new class bot no new test?
4 years, 6 months ago (2016-06-03 20:05:59 UTC) #7
groby-ooo-7-16
On 2016/06/03 20:04:09, msw wrote: > mostly just nits. > > https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/chooser_content_view.cc > File chrome/browser/ui/views/chooser_content_view.cc ...
4 years, 6 months ago (2016-06-03 20:10:13 UTC) #8
juncai
On 2016/06/03 20:05:59, Nico wrote: > *new class bot no new test? Added test code.
4 years, 6 months ago (2016-06-07 18:10:50 UTC) #9
juncai
https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/chooser_content_view.cc#newcode25 chrome/browser/ui/views/chooser_content_view.cc:25: // Chooser width On 2016/06/03 20:04:08, msw wrote: > ...
4 years, 6 months ago (2016-06-07 18:11:06 UTC) #10
Nico
gypi changes lgtm
4 years, 6 months ago (2016-06-07 21:52:14 UTC) #11
msw
Really nice comprehensive tests! Some comments... https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc (left): https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc#oldcode378 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc:378: chooser_bubble_ui_view_delegate_->chooser_table_model()->Update(); On 2016/06/07 ...
4 years, 6 months ago (2016-06-08 00:58:45 UTC) #12
juncai
blundell@chromium.org: Please review changes in //components https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc File chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc (left): https://codereview.chromium.org/2029863002/diff/20001/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc#oldcode378 chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.cc:378: chooser_bubble_ui_view_delegate_->chooser_table_model()->Update(); On 2016/06/08 ...
4 years, 6 months ago (2016-06-09 01:59:22 UTC) #14
blundell
lgtm You can add per-file OWNERS to //components/OWNERS.
4 years, 6 months ago (2016-06-09 07:36:35 UTC) #15
juncai
On 2016/06/09 07:36:35, blundell wrote: > lgtm > > You can add per-file OWNERS to ...
4 years, 6 months ago (2016-06-09 18:14:38 UTC) #16
msw
lgtm with nits; thanks for bearing with me! https://codereview.chromium.org/2029863002/diff/160001/chrome/browser/ui/views/chooser_content_view_unittest.cc File chrome/browser/ui/views/chooser_content_view_unittest.cc (right): https://codereview.chromium.org/2029863002/diff/160001/chrome/browser/ui/views/chooser_content_view_unittest.cc#newcode163 chrome/browser/ui/views/chooser_content_view_unittest.cc:163: EXPECT_CALL(*mock_table_view_observer_, ...
4 years, 6 months ago (2016-06-09 18:31:16 UTC) #17
msw
still lgtm https://codereview.chromium.org/2029863002/diff/220001/chrome/browser/ui/views/chooser_content_view.cc File chrome/browser/ui/views/chooser_content_view.cc (right): https://codereview.chromium.org/2029863002/diff/220001/chrome/browser/ui/views/chooser_content_view.cc#newcode167 chrome/browser/ui/views/chooser_content_view.cc:167: if (chooser_controller_) On 2016/06/09 18:31:15, msw wrote: ...
4 years, 6 months ago (2016-06-09 18:39:18 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029863002/300001
4 years, 6 months ago (2016-06-10 01:09:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) mac_chromium_gn_rel on ...
4 years, 6 months ago (2016-06-10 03:06:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2029863002/300001
4 years, 6 months ago (2016-06-10 03:53:18 UTC) #26
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 6 months ago (2016-06-10 04:26:57 UTC) #28
commit-bot: I haz the power
4 years, 6 months ago (2016-06-10 04:29:00 UTC) #30
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/69d8c2e016d84e8276aee3b7467b5129106af752
Cr-Commit-Position: refs/heads/master@{#399085}

Powered by Google App Engine
This is Rietveld 408576698