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

Issue 2767523002: ❄ Add InfoBarCompactLayout (Closed)

Created:
3 years, 9 months ago by gone
Modified:
3 years, 9 months ago
Reviewers:
Theresa
CC:
chromium-reviews, agrieve+watch_chromium.org, dfalcantara+watch_chromium.org, Leo
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

❄ Add InfoBarCompactLayout Adds the ability to create infobars that are "compact": * Adds an InfoBarCompactLayout that is basically a LinearLayout: it sandwiches custom controls in a 48dp high bar between an optional icon and a close button. * Pull out code that creates the icon ImageView and the close ImageButton so that it can be reused. * Add the ability for InfoBar subclasses to define whether or not they produce these compact infobars. * Add some stub code to TranslateCompactInfoBar that allows uses this code. This CL is meant to unblock the Sydney team from progressing; refinements to the way InfoBar uses the InfoBarCompactaLayout and the InfoBarLayout classes are forthcoming (along with a doc). Screenshots: https://drive.google.com/corp/drive/u/0/folders/0B7c8ZkXVwskDUmlESWpyZHRoeUk BUG=705312 Review-Url: https://codereview.chromium.org/2767523002 Cr-Commit-Position: refs/heads/master@{#459834} Committed: https://chromium.googlesource.com/chromium/src/+/7bc9bd3a6fa05f39eab314b3193e2ba382e96b45

Patch Set 1 #

Patch Set 2 : ❄ Experimental compact InfoBar layout #

Patch Set 3 : ❄ Experimental compact InfoBar layout #

Total comments: 8

Patch Set 4 : ❄ Experimental compact InfoBar layout #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -26 lines) Patch
M chrome/android/java/res/values/dimens.xml View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBar.java View 1 2 3 2 chunks +27 lines, -5 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarLayout.java View 1 2 4 chunks +49 lines, -21 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java View 1 2 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
gone
Theresa: PTAL Leo: FYI
3 years, 9 months ago (2017-03-27 00:39:06 UTC) #4
Theresa
lgtm https://codereview.chromium.org/2767523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java (right): https://codereview.chromium.org/2767523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java:18: * Lays out an infobar that has all ...
3 years, 9 months ago (2017-03-27 15:09:29 UTC) #6
gone
https://codereview.chromium.org/2767523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java File chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java (right): https://codereview.chromium.org/2767523002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java#newcode18 chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarCompactLayout.java:18: * Lays out an infobar that has all of ...
3 years, 9 months ago (2017-03-27 16:35:02 UTC) #7
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/2767523002/50001
3 years, 9 months ago (2017-03-27 16:35:31 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-27 18:27:00 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://chromium.googlesource.com/chromium/src/+/7bc9bd3a6fa05f39eab314b3193e...

Powered by Google App Engine
This is Rietveld 408576698