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

Unified Diff: chrome/android/java/res/layout/playback_notification_bar.xml

Issue 2119353003: Removing CustomLayout media notification logic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 5 months 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/res/layout/playback_notification_bar.xml
diff --git a/chrome/android/java/res/layout/playback_notification_bar.xml b/chrome/android/java/res/layout/playback_notification_bar.xml
deleted file mode 100644
index d52bc7c6a416ac70c7af7b9319206c8eab20d799..0000000000000000000000000000000000000000
--- a/chrome/android/java/res/layout/playback_notification_bar.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright 2015 The Chromium Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file. -->
-
-<!--
- Notification layout for media controls. Could have one or two buttons
- depending on the corresponding media.
- Local playback notification has one play/pause button on L+ but two buttons,
- play/pause and stop button, on earlier Android versions as the notification
- can't be dismissed by the swiping gesture.
- Cast notification always has the stop button that stops casting but only has
- the play/pause button if the Cast application controlled by the notification
- supports play/pause.
- The notification button ids are numbered from the right, so "R.id.button1" is
- always present and "R.id.button2" may have the visibility GONE.
- _______________________________________________________
- | | | |
- | | [media title] | |
- | ICON |======================================| || |
- | | [www.example.com] | |
- |________|______________________________________|_____|
- _______________________________________________________
- | | | | |
- | | [Cast device name] | | |
- | ICON |================================| || | X |
- | | [www.example.com] | | |
- |________|________________________________|_____|_____|
--->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_vertical">
-
- <FrameLayout
- android:layout_width="@android:dimen/notification_large_icon_width"
- android:layout_height="@android:dimen/notification_large_icon_height" >
-
- <ImageView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:contentDescription="@null"
- android:scaleType="centerInside"
- android:src="@drawable/notification_icon_bg" />
-
- <ImageView
- android:id="@+id/icon"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:contentDescription="@null"
- android:scaleType="center"
- android:src="@drawable/audio_playing" />
- </FrameLayout>
-
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="1"
- android:orientation="vertical">
-
- <TextView
- android:id="@+id/title"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="start"
- android:ellipsize="end"
- android:singleLine="true"
- style="@style/MediaNotificationTitle"/>
-
- <TextView
- android:id="@+id/status"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="start"
- android:ellipsize="end"
- android:singleLine="true"
- style="@style/MediaNotificationText"/>
-
- </LinearLayout>
-
- <ImageButton
- android:id="@+id/button2"
- android:src="@drawable/ic_vidcontrol_play"
- android:layout_width="40dp"
- android:layout_height="match_parent"
- android:layout_marginStart="8dp"
- android:gravity="center"
- android:padding="8dp"
- android:scaleType="center"
- android:background="?android:attr/selectableItemBackground"
- android:contentDescription="@null"
- android:visibility="gone"/>
-
- <ImageButton
- android:id="@+id/button1"
- android:src="@drawable/ic_vidcontrol_stop"
- android:layout_width="40dp"
- android:layout_height="match_parent"
- android:layout_marginEnd="8dp"
- android:gravity="center"
- android:padding="8dp"
- android:scaleType="center"
- android:background="?android:attr/selectableItemBackground"
- android:contentDescription="@null"/>
-
-</LinearLayout>
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698