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

Unified Diff: chrome/android/java/res/layout-sw600dp/toolbar.xml

Issue 1505913003: Add update menu item and app menu icon badge (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add code create 1dp transparent border in LocatoinBarPhone Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/res/layout-sw600dp/toolbar.xml
diff --git a/chrome/android/java/res/layout-sw600dp/toolbar.xml b/chrome/android/java/res/layout-sw600dp/toolbar.xml
index a60efe7912376f9cf04ed60af88d7e5a6d18c984..ecdbb53f6e2adef4f9aa24ca69ab82f154aae284 100644
--- a/chrome/android/java/res/layout-sw600dp/toolbar.xml
+++ b/chrome/android/java/res/layout-sw600dp/toolbar.xml
@@ -55,12 +55,27 @@
style="@style/ToolbarButton"
android:contentDescription="@string/accessibility_toolbar_btn_tabswitcher_toggle"
android:visibility="gone" />
- <org.chromium.chrome.browser.widget.TintedImageButton
- android:id="@+id/menu_button"
- style="@style/ToolbarButton"
- android:src="@drawable/btn_menu"
- android:contentDescription="@string/accessibility_toolbar_btn_menu"
- android:layout_width="43dp"
- android:paddingEnd="3.5dp" />
+ <FrameLayout
gone 2015/12/08 22:24:23 1) Does it make sense to pull this FrameLayout + c
Theresa 2015/12/10 03:53:17 1. All of the menu_buttons have different layout_w
gone 2015/12/10 21:45:07 Looks good. If this becomes a permanent thing I g
Theresa 2015/12/11 19:44:46 Acknowledged.
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/menu_btn_wrapper" >
gone 2015/12/08 22:24:23 nit: menu_button_wrapper? I think the btn_ design
Theresa 2015/12/10 03:53:17 Done.
+ <org.chromium.chrome.browser.widget.TintedImageButton
+ android:id="@+id/menu_button"
+ style="@style/ToolbarButton"
+ android:src="@drawable/btn_menu"
+ android:contentDescription="@string/accessibility_toolbar_btn_menu"
+ android:layout_width="43dp"
+ android:paddingEnd="3.5dp" />
+ <ImageView
+ android:id="@+id/menu_badge"
+ android:src="@drawable/badge_update"
+ android:layout_height="@dimen/menu_badge_size"
+ android:layout_width="@dimen/menu_badge_size"
+ android:layout_marginBottom="14dp"
+ android:layout_marginEnd="9.5dp"
+ android:layout_gravity="end|bottom"
+ android:contentDescription="@string/accessibility_toolbar_update_badge"
gone 2015/12/08 22:24:23 I don't know if it makes sense to apply the access
Theresa 2015/12/10 03:53:17 I don't think views inherit contentDescriptions fr
gone 2015/12/10 21:45:07 You might be able to apply a @null contentDescript
Theresa 2015/12/11 19:44:46 I set the contentDescription to null and defined i
+ android:visibility="gone" />
+ </FrameLayout>
</LinearLayout>
</org.chromium.chrome.browser.toolbar.ToolbarTablet>

Powered by Google App Engine
This is Rietveld 408576698