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

Issue 2779543005: Add support for highlighting menu items (Closed)

Created:
3 years, 9 months ago by David Trainor- moved to gerrit
Modified:
3 years, 8 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org, gone
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for highlighting menu items Add the ability to highlight menu items through the AppMenuButtonHelper. This will allow components to draw attention to the menu button and, once the menu is open, a particular menu entry. BUG=705687 Review-Url: https://codereview.chromium.org/2779543005 Cr-Commit-Position: refs/heads/master@{#464300} Committed: https://chromium.googlesource.com/chromium/src/+/3ab64ddd22e7af80cccc96562b6cf64b594be723

Patch Set 1 #

Total comments: 3

Patch Set 2 : Cleaned up some comments and code #

Total comments: 4

Patch Set 3 : Addressed some comments, continued improvement #

Patch Set 4 : Cleaned up the drawable a lot #

Patch Set 5 : Removed test code #

Total comments: 1

Patch Set 6 : Debugged drawable issues #

Total comments: 26

Patch Set 7 : Addressed comments #

Patch Set 8 : Moved PulseDrawable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+565 lines, -31 lines) Patch
M chrome/android/java/res/layout/toolbar_phone_common.xml View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/res/values/ids.xml View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java View 1 2 3 3 chunks +14 lines, -8 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java View 1 2 3 4 5 6 7 12 chunks +69 lines, -10 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuHandler.java View 1 2 3 4 4 chunks +33 lines, -11 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuObserver.java View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/Toolbar.java View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarLayout.java View 1 2 3 4 5 6 7 5 chunks +37 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarManager.java View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java View 1 2 3 4 5 6 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarTablet.java View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/widget/PulseDrawable.java View 1 2 3 4 5 6 7 1 chunk +318 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/widget/PulseInterpolator.java View 1 2 3 4 5 6 7 1 chunk +30 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (17 generated)
David Trainor- moved to gerrit
tedchoc@ ptal. Still need to focus the menu item and throttle the framerate. Might be ...
3 years, 9 months ago (2017-03-27 21:58:57 UTC) #3
Ted C
https://codereview.chromium.org/2779543005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java (right): https://codereview.chromium.org/2779543005/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java#newcode447 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java:447: if (tag == null || !(tag instanceof MenuItemViewHolder)) return; ...
3 years, 8 months ago (2017-03-31 19:01:47 UTC) #4
David Trainor- moved to gerrit
ptal... sorry this is hard to test remotely. cleaned up what I had working yesterday. ...
3 years, 8 months ago (2017-04-11 18:43:04 UTC) #5
Ted C
https://codereview.chromium.org/2779543005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java File chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java (right): https://codereview.chromium.org/2779543005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java#newcode446 chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java:446: private void checkHighlightDrawable(View view, boolean isIcon, int itemId) { ...
3 years, 8 months ago (2017-04-12 18:05:57 UTC) #10
David Trainor- moved to gerrit
addressed comments. can try the trick with the background drawable later tonight. ptal. https://codereview.chromium.org/2779543005/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenuAdapter.java File ...
3 years, 8 months ago (2017-04-12 18:59:37 UTC) #13
Ted C
lgtm
3 years, 8 months ago (2017-04-12 20:44:08 UTC) #14
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/2779543005/140001
3 years, 8 months ago (2017-04-13 03:52:48 UTC) #20
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/2779543005/140001
3 years, 8 months ago (2017-04-13 04:08:25 UTC) #23
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 04:51:39 UTC) #26
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/3ab64ddd22e7af80cccc96562b6c...

Powered by Google App Engine
This is Rietveld 408576698