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

Issue 2289223002: Make TrayDetailsView a ViewClickListener and ButtonListener (Closed)

Created:
4 years, 3 months ago by tdanderson
Modified:
4 years, 3 months ago
Reviewers:
varkha, oshima
CC:
chromium-reviews, dtseng+watch_chromium.org, sadrul, yusukes+watch_chromium.org, aboxhall+watch_chromium.org, nektar+watch_chromium.org, shuchen+watch_chromium.org, yuzo+watch_chromium.org, nona+watch_chromium.org, je_julie, dmazzoni+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make TrayDetailsView a ViewClickListener and ButtonListener Some initial changes in preparation for implementing the material design version of the detailed views in the Ash system menu: * Make TrayDetailsView extend ViewClickListener and ButtonListener instead of having each of TrayDetailsView's subclasses extend these. The aim is to place common code in TrayDetailsView. * Rename the TrayDetailsView "footer row" to be the "title row"; for material design this row appears at the top of the detailed view, not the bottom. * For material design (--ash-md=experimental), show the title row at the top of the detailed view and do not instantiate or show any non-MD buttons in this row. Further improvements to the appearance and functionality of the title rows to be handled in subsequent CLs. BUG=642136 TEST=ash_unittests Committed: https://crrev.com/bd26b635c2b1e5ad8287a4f87d87f5ce2c697267 Cr-Commit-Position: refs/heads/master@{#416134}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 17

Patch Set 3 : comments addressed #

Total comments: 2

Patch Set 4 : CreateTitleRow() parameter removed #

Total comments: 3

Patch Set 5 : const accessors #

Patch Set 6 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+329 lines, -276 lines) Patch
M ash/common/system/cast/tray_cast.cc View 1 2 3 6 chunks +16 lines, -25 lines 0 comments Download
M ash/common/system/chromeos/audio/audio_detailed_view.h View 3 chunks +3 lines, -5 lines 0 comments Download
M ash/common/system/chromeos/audio/audio_detailed_view.cc View 1 2 3 2 chunks +8 lines, -16 lines 0 comments Download
M ash/common/system/chromeos/bluetooth/tray_bluetooth.cc View 1 2 3 7 chunks +81 lines, -65 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_list_view.h View 2 chunks +3 lines, -4 lines 0 comments Download
M ash/common/system/chromeos/ime_menu/ime_list_view.cc View 1 2 1 chunk +19 lines, -19 lines 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.h View 1 2 5 chunks +12 lines, -11 lines 0 comments Download
M ash/common/system/chromeos/network/network_state_list_detailed_view.cc View 1 2 3 11 chunks +25 lines, -24 lines 0 comments Download
M ash/common/system/chromeos/network/tray_sms.cc View 1 2 3 4 chunks +2 lines, -10 lines 0 comments Download
M ash/common/system/chromeos/network/vpn_list_view.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/common/system/ime/tray_ime_chromeos.cc View 1 2 3 1 chunk +10 lines, -11 lines 0 comments Download
M ash/common/system/tray/tray_details_view.h View 1 2 3 4 2 chunks +46 lines, -20 lines 0 comments Download
M ash/common/system/tray/tray_details_view.cc View 1 2 3 5 chunks +46 lines, -21 lines 0 comments Download
M ash/common/system/tray/tray_details_view_unittest.cc View 1 2 3 4 5 11 chunks +38 lines, -23 lines 0 comments Download
M ash/common/system/tray/view_click_listener.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ash/common/system/tray_accessibility.h View 3 chunks +5 lines, -7 lines 0 comments Download
M ash/common/system/tray_accessibility.cc View 1 2 3 3 chunks +10 lines, -12 lines 0 comments Download
M ui/chromeos/network/network_list_delegate.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 34 (19 generated)
tdanderson
Valery, can you please take a look?
4 years, 3 months ago (2016-08-30 16:36:47 UTC) #6
varkha
That's a nice start. One thing that is visually a bit confusing is that the ...
4 years, 3 months ago (2016-08-31 20:28:14 UTC) #9
tdanderson
Valery, please take another look. Regarding your comment about the appearance of the top row, ...
4 years, 3 months ago (2016-08-31 22:24:15 UTC) #12
varkha
Code looks good, just one question. https://codereview.chromium.org/2289223002/diff/40001/ash/common/system/tray/tray_details_view.cc File ash/common/system/tray/tray_details_view.cc (right): https://codereview.chromium.org/2289223002/diff/40001/ash/common/system/tray/tray_details_view.cc#newcode90 ash/common/system/tray/tray_details_view.cc:90: ViewClickListener* listener) { ...
4 years, 3 months ago (2016-08-31 23:18:13 UTC) #15
tdanderson
Valery, please take another look. Oshima, can you please look at the one-line change in ...
4 years, 3 months ago (2016-09-01 14:39:12 UTC) #19
varkha
lgtm
4 years, 3 months ago (2016-09-01 14:45:21 UTC) #20
oshima
one q https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h File ash/common/system/tray/tray_details_view.h (right): https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h#newcode44 ash/common/system/tray/tray_details_view.h:44: views::View* scroll_content() const { return scroll_content_; } ...
4 years, 3 months ago (2016-09-01 18:00:58 UTC) #23
tdanderson
https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h File ash/common/system/tray/tray_details_view.h (right): https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h#newcode44 ash/common/system/tray/tray_details_view.h:44: views::View* scroll_content() const { return scroll_content_; } On 2016/09/01 ...
4 years, 3 months ago (2016-09-01 19:48:00 UTC) #24
oshima
https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h File ash/common/system/tray/tray_details_view.h (right): https://codereview.chromium.org/2289223002/diff/60001/ash/common/system/tray/tray_details_view.h#newcode44 ash/common/system/tray/tray_details_view.h:44: views::View* scroll_content() const { return scroll_content_; } On 2016/09/01 ...
4 years, 3 months ago (2016-09-01 20:23:17 UTC) #25
oshima
lgtm
4 years, 3 months ago (2016-09-01 21:53:59 UTC) #26
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/2289223002/80001
4 years, 3 months ago (2016-09-01 21:57:05 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-02 00:03:22 UTC) #30
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/bd26b635c2b1e5ad8287a4f87d87f5ce2c697267 Cr-Commit-Position: refs/heads/master@{#416134}
4 years, 3 months ago (2016-09-02 00:08:07 UTC) #32
findit-for-me
FYI: Findit try jobs (rerunning failed compile or tests) identified this CL at revision 416134 ...
4 years, 3 months ago (2016-09-02 03:26:09 UTC) #33
magjed_chromium
4 years, 3 months ago (2016-09-02 09:29:39 UTC) #34
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/2300353002/ by magjed@chromium.org.

The reason for reverting is: This CL breaks
TrayDetailsViewTest.HoverHighlightViewTouchFeedback on:
Linux ChromiumOS Tests (dbg)(1)
and
Linux Chromium OS ASan LSan Tests (1

https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2...
[ RUN      ] TrayDetailsViewTest.HoverHighlightViewTouchFeedback
Xlib:  extension "RANDR" missing on display ":9".
=================================================================
==5332==ERROR: AddressSanitizer: heap-use-after-free on address 0x616000324580
at pc 0x0000007871d6 bp 0x7ffe4d468250 sp 0x7ffe4d468248
READ of size 1 at 0x616000324580 thread T0
    #0 0x7871d5 in hover ash/common/system/tray/hover_highlight_view.h:89:31
    #1 0x7871d5 in
ash::test::TrayDetailsViewTest_HoverHighlightViewTouchFeedback_Test::TestBody()
ash/common/system/tray/tray_details_view_unittest.cc:205
    #2 0x24fe1bb in HandleExceptionsInMethodIfSupported<testing::Test, void>
testing/gtest/src/gtest.cc:2458:12
    #3 0x24fe1bb in testing::Test::Run() testing/gtest/src/gtest.cc:2474
    #4 0x250024b in testing::TestInfo::Run() testing/gtest/src/gtest.cc:2656:11
    #5 0x2501006 in testing::TestCase::Run() testing/gtest/src/gtest.cc:2774:28
    #6 0x2515006 in testing::internal::UnitTestImpl::RunAllTests()
testing/gtest/src/gtest.cc:4647:43
    #7 0x2514667 in
HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl, bool>
testing/gtest/src/gtest.cc:2458:12
    #8 0x2514667 in testing::UnitTest::Run() testing/gtest/src/gtest.cc:4255
    #9 0x1b28b8b in RUN_ALL_TESTS testing/gtest/include/gtest/gtest.h:2237:46
    #10 0x1b28b8b in base::TestSuite::Run() base/test/test_suite.cc:246
    #11 0x1b2c5b4 in Run base/callback.h:388:12
    #12 0x1b2c5b4 in base::(anonymous
namespace)::LaunchUnitTestsInternal(base::Callback<int (),
(base::internal::CopyMode)1> const&, int, int, bool, base::Callback<void (),
(base::internal::CopyMode)1> const&)
base/test/launcher/unit_test_launcher.cc:206
    #13 0x1b2c26e in base::LaunchUnitTests(int, char**, base::Callback<int (),
(base::internal::CopyMode)1> const&)
base/test/launcher/unit_test_launcher.cc:445:10
    #14 0xcab0de in main ash/test/ash_unittests.cc:14:10
    #15 0x7fe83864e7ec in __libc_start_main
/build/eglibc-oqps9y/eglibc-2.15/csu/libc-start.c:226.

Powered by Google App Engine
This is Rietveld 408576698