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

Issue 2223743004: 📰 Add an action button that can be used in sections (Closed)

Created:
4 years, 4 months ago by dgn
Modified:
4 years, 4 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, Philipp Keck
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP Client] Add an action button that can be used in sections Adds the button to the sections, that can be enabled when they are initialised. The current implementation of the tap handler just opens the bookmarks manager Preview: https://goo.gl/photos/Z6A3toNYpV649Yjx8 BUG=610648 Committed: https://crrev.com/131f466e0c896c7c590246f17e8f1f11009f12e4 Cr-Commit-Position: refs/heads/master@{#410706}

Patch Set 1 #

Patch Set 2 : use navigateToBookmarks() #

Patch Set 3 : update tests #

Total comments: 12

Patch Set 4 : address comments #

Patch Set 5 : Adjust behaviour across screen sizes #

Patch Set 6 : Disable showing the button by default #

Patch Set 7 : fix test #

Total comments: 2

Messages

Total messages: 34 (20 generated)
dgn
PTAL
4 years, 4 months ago (2016-08-08 15:27:28 UTC) #4
dgn
PTAL
4 years, 4 months ago (2016-08-08 15:27:28 UTC) #6
PEConn
https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml File chrome/android/java/res/layout/new_tab_page_action_card.xml (right): https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml#newcode28 chrome/android/java/res/layout/new_tab_page_action_card.xml:28: android:paddingStart="8dp" I think the style guide says that elements ...
4 years, 4 months ago (2016-08-08 18:13:12 UTC) #13
Bernhard Bauer
https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml File chrome/android/java/res/layout/new_tab_page_action_card.xml (right): https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml#newcode7 chrome/android/java/res/layout/new_tab_page_action_card.xml:7: drawable) and adds the selectable ripple effects as foreground. ...
4 years, 4 months ago (2016-08-09 09:02:06 UTC) #14
dgn
PTAL https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml File chrome/android/java/res/layout/new_tab_page_action_card.xml (right): https://codereview.chromium.org/2223743004/diff/40001/chrome/android/java/res/layout/new_tab_page_action_card.xml#newcode7 chrome/android/java/res/layout/new_tab_page_action_card.xml:7: drawable) and adds the selectable ripple effects as ...
4 years, 4 months ago (2016-08-09 13:00:42 UTC) #16
Bernhard Bauer
lgtm
4 years, 4 months ago (2016-08-09 13:03:09 UTC) #18
dgn
Thanks! I noticed after your LGTM that I didn't handle the wide layout use case. ...
4 years, 4 months ago (2016-08-09 13:46:22 UTC) #19
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/2223743004/100001
4 years, 4 months ago (2016-08-09 13:46:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/118759)
4 years, 4 months ago (2016-08-09 15:04:29 UTC) #24
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/2223743004/120001
4 years, 4 months ago (2016-08-09 15:42:49 UTC) #27
dgn
https://codereview.chromium.org/2223743004/diff/120001/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java File chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java (right): https://codereview.chromium.org/2223743004/diff/120001/chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java#newcode45 chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java:45: * TODO(pke): Make this depend on the category info ...
4 years, 4 months ago (2016-08-09 15:47:16 UTC) #28
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 4 months ago (2016-08-09 16:48:33 UTC) #30
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/131f466e0c896c7c590246f17e8f1f11009f12e4 Cr-Commit-Position: refs/heads/master@{#410706}
4 years, 4 months ago (2016-08-09 16:51:50 UTC) #32
Philipp Keck
4 years, 4 months ago (2016-08-09 17:40:48 UTC) #34
Message was sent while issue was closed.
https://codereview.chromium.org/2223743004/diff/120001/chrome/android/junit/s...
File
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java
(right):

https://codereview.chromium.org/2223743004/diff/120001/chrome/android/junit/s...
chrome/android/junit/src/org/chromium/chrome/browser/ntp/cards/NewTabPageAdapterTest.java:45:
* TODO(pke): Make this depend on the category info of the loaded sections
On 2016/08/09 15:47:16, dgn wrote:
> FYI: added a TODO. If your change properly runs the tests without that, I can
> also take care of it once it has landed. I would mostly rewrite them to make
> proper use of the sections to manipulate the internal state of the adapter
> instead of a few hardcoded things here.

Thanks for the heads up. I'm not really an expert with all the position-stuff in
the adapter. The tests run fine with my changes, so I'm assigning the TODO to
you.

Powered by Google App Engine
This is Rietveld 408576698