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

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

Issue 276483004: Upstream accessibility tab switcher and related resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 6 years, 7 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
Index: chrome/android/java/res/layout/accessibility_tab_switcher.xml
diff --git a/chrome/android/java/res/layout/accessibility_tab_switcher.xml b/chrome/android/java/res/layout/accessibility_tab_switcher.xml
new file mode 100644
index 0000000000000000000000000000000000000000..5b6065b01ffa1a2812d29bfc2eed73e742db6141
--- /dev/null
+++ b/chrome/android/java/res/layout/accessibility_tab_switcher.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- Copyright 2014 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.
+-->
+
+<org.chromium.chrome.browser.widget.accessibility.AccessibilityTabModelWrapper
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:id="@+id/wrapper"
+ android:background="@color/tab_switcher_background"
+ android:divider="@drawable/accessibility_tab_switcher_divider"
+ android:showDividers="middle">
+
+ <org.chromium.chrome.browser.widget.accessibility.AccessibilityTabModelListView
+ android:id="@+id/list_view"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="1"
+ android:contentDescription="@string/accessibility_tab_switcher_standard_stack" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="horizontal"
+ android:id="@+id/button_wrapper"
+ android:visibility="gone">
+
+ <ImageButton
+ android:id="@+id/standard_tabs_button"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:background="@drawable/ntp_toolbar_button_background_selected"
+ android:src="@drawable/tabstrip_incognito_switch_normal"
+ android:contentDescription="@string/accessibility_tab_switcher_standard_stack"
+ style="?android:attr/borderlessButtonStyle" />
+
+ <ImageView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center_vertical"
+ android:src="@drawable/incognito_separator"
+ android:contentDescription="@null" />
+
+ <ImageButton
+ android:id="@+id/incognito_tabs_button"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:src="@drawable/tabstrip_incognito_switch_incognito"
+ android:background="@drawable/ntp_toolbar_button_background"
+ android:contentDescription="@string/accessibility_tab_switcher_incognito_stack"
+ style="?android:attr/borderlessButtonStyle" />
+ </LinearLayout>
+</org.chromium.chrome.browser.widget.accessibility.AccessibilityTabModelWrapper>

Powered by Google App Engine
This is Rietveld 408576698