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

Issue 302653002: Introduce the MicButtonTargeter class (Closed)

Created:
6 years, 6 months ago by tdanderson
Modified:
6 years, 6 months ago
Reviewers:
xiyuan, sadrul
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org
Visibility:
Public.

Description

Introduce the MicButtonTargeter class Introduce MicButtonTargeter, a derived class of MaskedViewTargeter, to define the circular hit-test region of MicButton. We will need to be able to access the hit test mask corresponding to a view by calling into its installed MaskedViewTargeter, so GetHitTestMask() should be made public. Furthermore, add a version of GetEventTargeter() to EventTarget that returns a const pointer. BUG=377537, 378485 TEST=SpeechViewTest.ClickMicButton Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273740

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase against ToT #

Patch Set 3 : For review #

Total comments: 2

Patch Set 4 : test in progress #

Total comments: 8

Patch Set 5 : test fixed #

Patch Set 6 : fix compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -15 lines) Patch
M ui/app_list/app_list.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.h View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M ui/app_list/test/app_list_test_view_delegate.cc View 1 2 3 3 chunks +11 lines, -0 lines 0 comments Download
M ui/app_list/views/speech_view.h View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M ui/app_list/views/speech_view.cc View 1 2 3 3 chunks +35 lines, -8 lines 0 comments Download
A ui/app_list/views/speech_view_unittest.cc View 1 2 3 4 1 chunk +94 lines, -0 lines 0 comments Download
M ui/views/masked_view_targeter.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/view.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/view_targeter_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 15 (0 generated)
tdanderson
Sadrul, can you take a quick look at this? Ignore everything except for speech_view.cc and ...
6 years, 6 months ago (2014-05-27 16:33:33 UTC) #1
tdanderson
https://codereview.chromium.org/302653002/diff/1/ui/views/masked_view_targeter.h File ui/views/masked_view_targeter.h (right): https://codereview.chromium.org/302653002/diff/1/ui/views/masked_view_targeter.h#newcode28 ui/views/masked_view_targeter.h:28: virtual bool GetHitTestMask(View* view, gfx::Path* mask) const = 0; ...
6 years, 6 months ago (2014-05-27 16:35:02 UTC) #2
tdanderson
Sadrul, I rebased against ToT so this is now ready for formal review. If this ...
6 years, 6 months ago (2014-05-28 16:39:13 UTC) #3
sadrul
LGTM Can you look at adding a test for the app_list change (from a quick ...
6 years, 6 months ago (2014-05-28 22:14:51 UTC) #4
tdanderson
xiyuan@, can you please look at the changes in ui/app_list? This is is a follow-up ...
6 years, 6 months ago (2014-05-28 22:21:25 UTC) #5
xiyuan
It might make sense to add a unit test for SpeechView itself. You can use ...
6 years, 6 months ago (2014-05-28 23:01:43 UTC) #6
tdanderson
xiyuan@, please take a look at my test in progress. Is this what you had ...
6 years, 6 months ago (2014-05-29 19:55:18 UTC) #7
xiyuan
Yes, the test is what I have in mind. https://codereview.chromium.org/302653002/diff/60001/ui/app_list/views/speech_view.h File ui/app_list/views/speech_view.h (right): https://codereview.chromium.org/302653002/diff/60001/ui/app_list/views/speech_view.h#newcode25 ui/app_list/views/speech_view.h:25: ...
6 years, 6 months ago (2014-05-29 20:25:12 UTC) #8
tdanderson
xiyuan@, thank you very much for the helpful feedback. The test works now. Can you ...
6 years, 6 months ago (2014-05-29 21:34:23 UTC) #9
xiyuan
Cool. LGTM!
6 years, 6 months ago (2014-05-29 21:41:07 UTC) #10
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-05-29 21:53:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/302653002/80001
6 years, 6 months ago (2014-05-29 21:55:30 UTC) #12
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-05-29 22:43:16 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/302653002/100001
6 years, 6 months ago (2014-05-29 22:45:49 UTC) #14
commit-bot: I haz the power
6 years, 6 months ago (2014-05-30 07:01:22 UTC) #15
Message was sent while issue was closed.
Change committed as 273740

Powered by Google App Engine
This is Rietveld 408576698