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

Issue 2751333006: Create the base Custom Context Menu Dialog. (Closed)

Created:
3 years, 9 months ago by JJ
Modified:
3 years, 8 months ago
CC:
chromium-reviews, srahim+watch_chromium.org, asvitkine+watch_chromium.org, agrieve+watch_chromium.org, ltian
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create the base Custom Context Menu Dialog. This CL creates the new Context Menu. There are a few key decisions I made during each moment and if the explanation isn't in here, please take a look at the design doc under caveats or just talk to me! (Usually we can get things cleared up a little quicker through in person chat than through conversations). This change covers the base dialog and the feature flag for it. Please take a look when you can. Image loading, Share Helper, and contextmenu -> context_menu will all come in different cls. ----Screenshots---- https://drive.google.com/open?id=0B6D5A57VLDpeSHZfNkgzUlVhYlk https://drive.google.com/open?id=0B6D5A57VLDpeVDNHUXFOVzVnbFU Video - https://drive.google.com/open?id=0B6D5A57VLDpeaUNVNXFReVNnYUk DESIGN_DOC= https://docs.google.com/document/d/1MvLS1sRJ6CqOdSg8sKzA0j2gbKO2XGRAb02SPlK1cbw/edit#heading=h.xgjl2srtytjt BUG=613357 Review-Url: https://codereview.chromium.org/2751333006 Cr-Commit-Position: refs/heads/master@{#460664} Committed: https://chromium.googlesource.com/chromium/src/+/1582bcfa6979192f20e21d3ae4afb6951f0793c6

Patch Set 1 #

Total comments: 71

Patch Set 2 : Code based issues fixed. Upcoming patch on pngs and 2 copyright nits #

Patch Set 3 : Modified pngs to only contain what we need. #

Total comments: 8

Patch Set 4 : Fixed based of dtrainor's comments #

Total comments: 1

Patch Set 5 : Switched from Custom -> Tabular #

Patch Set 6 : Updated tests and header #

Total comments: 38

Patch Set 7 : Fixed based off dtrainor's + tedchoc's comments #

Patch Set 8 : Updated with the new Icons #

Patch Set 9 : Minor text fixes #

Patch Set 10 : git rebase #

Total comments: 8

Patch Set 11 : Fixed based off tedchoc's comments #

Total comments: 11

Patch Set 12 : Fixed based off tedchoc's comments #

Total comments: 12

Patch Set 13 : Fixed based off tedchoc's comments #

Total comments: 2

Patch Set 14 : Updated based off tedchoc's comments #

Patch Set 15 : git rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+793 lines, -60 lines) Patch
A chrome/android/java/res/drawable-hdpi/context_menu_add_to_contacts.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/context_menu_load_image.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-hdpi/context_menu_new_tab.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/context_menu_add_to_contacts.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/context_menu_load_image.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-mdpi/context_menu_new_tab.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/context_menu_add_to_contacts.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/context_menu_load_image.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xhdpi/context_menu_new_tab.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/context_menu_add_to_contacts.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/context_menu_load_image.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxhdpi/context_menu_new_tab.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/context_menu_add_to_contacts.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/context_menu_load_image.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/drawable-xxxhdpi/context_menu_new_tab.png View 1 2 3 4 5 6 7 Binary file 0 comments Download
A chrome/android/java/res/layout/tabular_context_menu.xml View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/tabular_context_menu_page.xml View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/tabular_context_menu_row.xml View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +47 lines, -20 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuItem.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +65 lines, -28 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuParams.java View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuUi.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextmenu/PlatformContextMenuUi.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +5 lines, -7 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuListAdapter.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +83 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuPagerAdapter.java View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUi.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +183 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuViewPager.java View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/flag_descriptions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +10 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (32 generated)
JJ
Please take a look at the CL! I'm still waiting on a few small things ...
3 years, 9 months ago (2017-03-17 20:58:20 UTC) #2
JJ
Please take a look when you can! https://codereview.chromium.org/2751333006/diff/1/chrome/browser/android/chrome_feature_list.cc File chrome/browser/android/chrome_feature_list.cc (right): https://codereview.chromium.org/2751333006/diff/1/chrome/browser/android/chrome_feature_list.cc#newcode91 chrome/browser/android/chrome_feature_list.cc:91: NOTREACHED() << ...
3 years, 9 months ago (2017-03-17 21:12:44 UTC) #4
Ted C
initial set of comments https://codereview.chromium.org/2751333006/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java (right): https://codereview.chromium.org/2751333006/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java#newcode135 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java:135: public void onCreateContextMenu(ContextMenu menu, View ...
3 years, 9 months ago (2017-03-21 16:29:40 UTC) #6
David Trainor- moved to gerrit
Quick comments on the pngs: - We should have a bunch of these already (download, ...
3 years, 9 months ago (2017-03-21 16:30:03 UTC) #7
David Trainor- moved to gerrit
Also, we should shrink the border shadow nine patch to remove all redundant space.
3 years, 9 months ago (2017-03-21 16:32:56 UTC) #8
JJ
I've addressed many of the issues that are put in place. There are a few ...
3 years, 9 months ago (2017-03-22 23:35:33 UTC) #9
David Trainor- moved to gerrit
The nine patches still look too big. You don't really need any redundant that aren't ...
3 years, 9 months ago (2017-03-23 04:58:48 UTC) #10
JJ
Everything is addressed mins icons and tinting. Waiting on Bruno for that. Also based of ...
3 years, 9 months ago (2017-03-23 18:57:47 UTC) #11
Ted C
https://codereview.chromium.org/2751333006/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java (right): https://codereview.chromium.org/2751333006/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java#newcode118 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java:118: view.measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED), On 2017/03/23 18:57:46, JJ wrote: > On ...
3 years, 9 months ago (2017-03-24 04:32:54 UTC) #12
David Trainor- moved to gerrit
https://codereview.chromium.org/2751333006/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java (right): https://codereview.chromium.org/2751333006/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java#newcode98 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/CustomContextMenuDialog.java:98: private void setBackgroundForImageView(ImageView imageView, Resources resources) { On 2017/03/23 ...
3 years, 9 months ago (2017-03-24 17:24:20 UTC) #13
JJ
Hey y'all I hope I've answered all thoughts on how to handle this change. I'm ...
3 years, 9 months ago (2017-03-25 01:40:26 UTC) #18
JJ
I've tried to eradicate most references of the image and move it over to a ...
3 years, 9 months ago (2017-03-26 22:09:49 UTC) #19
Ted C
https://codereview.chromium.org/2751333006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuViewPager.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuViewPager.java (right): https://codereview.chromium.org/2751333006/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuViewPager.java#newcode53 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuViewPager.java:53: super.onMeasure(widthMeasureSpec, heightMeasureSpec); On 2017/03/25 01:40:25, JJ wrote: > On ...
3 years, 9 months ago (2017-03-27 20:53:34 UTC) #24
JJ
3/4 comments don't need a change associated with it. The last one I'll do in ...
3 years, 9 months ago (2017-03-28 00:09:27 UTC) #25
David Trainor- moved to gerrit
lgtm % tedchoc https://codereview.chromium.org/2751333006/diff/170001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java File chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java (right): https://codereview.chromium.org/2751333006/diff/170001/chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java#newcode116 chrome/android/java/src/org/chromium/chrome/browser/contextmenu/ContextMenuHelper.java:116: // The Platform Context Menu requires ...
3 years, 9 months ago (2017-03-28 03:25:59 UTC) #26
JJ
When you get the chance. David also defered to you about the tinted icons. I'm ...
3 years, 8 months ago (2017-03-28 16:57:01 UTC) #27
JJ
holte, can you please review changes in histograms.xml?
3 years, 8 months ago (2017-03-28 17:15:54 UTC) #33
Ted C
Also, we shouldn't be adding the new incognito icon. We should use what we already ...
3 years, 8 months ago (2017-03-28 17:31:44 UTC) #34
Steven Holte
histograms lgtm
3 years, 8 months ago (2017-03-28 20:19:31 UTC) #35
JJ
Fixed! Removed the icon. Turns out we have a white one that I missed when ...
3 years, 8 months ago (2017-03-28 21:16:12 UTC) #36
Ted C
The robolectric comment is an FYI and not something we should investigate as part of ...
3 years, 8 months ago (2017-03-28 23:14:00 UTC) #39
JJ
I've moved to using context instead of Activity and shifted that to the "Share" cl ...
3 years, 8 months ago (2017-03-29 00:24:27 UTC) #42
Ted C
https://codereview.chromium.org/2751333006/diff/210001/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java (right): https://codereview.chromium.org/2751333006/diff/210001/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java#newcode74 chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java:74: return dialog.createPagerView(getActivity(), new MockMenuParams(url), itemGroups); On 2017/03/29 00:24:27, JJ ...
3 years, 8 months ago (2017-03-29 16:18:14 UTC) #47
Ted C
On 2017/03/29 16:18:14, Ted C wrote: > https://codereview.chromium.org/2751333006/diff/210001/chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java > File > chrome/android/javatests/src/org/chromium/chrome/browser/contextmenu/TabularContextMenuUiTest.java > (right): > ...
3 years, 8 months ago (2017-03-29 16:19:28 UTC) #48
JJ
Thanks, I'm aware of the bug and a fix for it will be up soon ...
3 years, 8 months ago (2017-03-29 16:26:36 UTC) #49
JJ
Quickly read the comment about testing. It might be good to start thinking about how ...
3 years, 8 months ago (2017-03-29 18:00:22 UTC) #50
Ted C
lgtm
3 years, 8 months ago (2017-03-30 00:10:41 UTC) #53
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/2751333006/270001
3 years, 8 months ago (2017-03-30 00:13:51 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_TIMED_OUT, build hasn't started yet, builder ...
3 years, 8 months ago (2017-03-30 02:16:00 UTC) #58
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/2751333006/270001
3 years, 8 months ago (2017-03-30 02:20:34 UTC) #60
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 04:34:48 UTC) #63
Message was sent while issue was closed.
Committed patchset #15 (id:270001) as
https://chromium.googlesource.com/chromium/src/+/1582bcfa6979192f20e21d3ae4af...

Powered by Google App Engine
This is Rietveld 408576698