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

Side by Side Diff: chrome/android/java/res/layout/custom_tabs_toolbar.xml

Issue 1226183002: Add RTL support to custom tabs toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@toolbar_ui_fix
Patch Set: rename Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- Copyright 2015 The Chromium Authors. All rights reserved. 2 <!-- Copyright 2015 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be 3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file. --> 4 found in the LICENSE file. -->
5 5
6 <org.chromium.chrome.browser.toolbar.CustomTabToolbar xmlns:android="http://sche mas.android.com/apk/res/android"> 6 <org.chromium.chrome.browser.toolbar.CustomTabToolbar xmlns:android="http://sche mas.android.com/apk/res/android">
7 <org.chromium.chrome.browser.widget.TintedImageButton 7 <org.chromium.chrome.browser.widget.TintedImageButton
8 android:id="@+id/close_button" 8 android:id="@+id/close_button"
9 style="@style/ToolbarButton" 9 style="@style/ToolbarButton"
10 android:layout_gravity="center_vertical" 10 android:layout_gravity="start|center_vertical"
11 android:contentDescription="@string/close_tab" /> 11 android:contentDescription="@string/close_tab" />
12 <ImageButton android:id="@+id/security_button"
13 style="@style/LocationBarButton"
14 android:layout_width="@dimen/location_bar_icon_width"
15 android:layout_height="match_parent"
16 android:layout_marginStart="48dp"
17 android:scaleType="center"
18 android:layout_gravity="center_vertical"
19 android:alpha="0"
20 android:visibility="gone"
21 android:contentDescription="@string/accessibility_toolbar_btn_site_info" />
22 <FrameLayout 12 <FrameLayout
23 android:id="@+id/url_info_container" 13 android:id="@+id/location_bar_frame_layout"
24 android:background="@null" 14 android:layout_width="match_parent"
25 android:layout_width="wrap_content"
26 android:layout_height="wrap_content" 15 android:layout_height="wrap_content"
27 android:layout_gravity="center_vertical" > 16 android:layout_gravity="center_vertical" >
28 <TextView 17 <ImageButton
29 android:id="@+id/title_bar" 18 android:id="@+id/security_button"
30 android:background="@null" 19 style="@style/LocationBarButton"
31 android:layout_width="wrap_content" 20 android:layout_width="@dimen/location_bar_icon_width"
21 android:layout_height="match_parent"
22 android:layout_gravity="center_vertical"
23 android:alpha="0"
24 android:contentDescription="@string/accessibility_toolbar_btn_site_i nfo"
25 android:scaleType="center"
26 android:visibility="gone" />
27 <FrameLayout
28 android:id="@+id/title_url_container"
29 android:layout_width="match_parent"
32 android:layout_height="wrap_content" 30 android:layout_height="wrap_content"
33 android:layout_marginBottom="16dp" 31 android:layout_gravity="center_vertical"
34 android:layout_gravity="top" 32 android:background="@null" >
35 android:maxLines="1" 33 <TextView
36 android:ellipsize="end" 34 android:id="@+id/title_bar"
37 android:paddingEnd="@dimen/toolbar_edge_padding" 35 android:layout_width="wrap_content"
38 android:textSize="@dimen/custom_tabs_title_text_size" 36 android:layout_height="wrap_content"
39 android:inputType="none" 37 android:layout_gravity="top"
40 android:visibility="gone" /> 38 android:layout_marginBottom="16dp"
41 <org.chromium.chrome.browser.omnibox.UrlBar 39 android:background="@null"
42 android:id="@+id/url_bar" 40 android:ellipsize="end"
43 android:background="@null" 41 android:inputType="none"
44 android:layout_width="wrap_content" 42 android:maxLines="1"
45 android:layout_height="wrap_content" 43 android:paddingEnd="@dimen/toolbar_edge_padding"
46 android:layout_gravity ="bottom" 44 android:textSize="@dimen/custom_tabs_title_text_size"
47 android:maxLines="1" 45 android:visibility="gone" />
48 android:paddingEnd="@dimen/toolbar_edge_padding" 46 <org.chromium.chrome.browser.omnibox.UrlBar
49 android:textSize="@dimen/location_bar_url_text_size" 47 android:id="@+id/url_bar"
50 android:inputType="none" /> 48 android:layout_width="wrap_content"
49 android:layout_height="wrap_content"
50 android:layout_gravity="bottom"
51 android:background="@null"
52 android:inputType="none"
53 android:maxLines="1"
54 android:paddingEnd="@dimen/toolbar_edge_padding"
55 android:textSize="@dimen/location_bar_url_text_size" />
56 </FrameLayout>
51 </FrameLayout> 57 </FrameLayout>
52 <ImageButton 58 <ImageButton
53 android:id="@+id/action_button" 59 android:id="@+id/action_button"
54 style="@style/ToolbarButton" 60 style="@style/ToolbarButton"
55 android:layout_width="wrap_content" 61 android:layout_width="wrap_content"
56 android:maxWidth="@dimen/custom_tabs_toolbar_maxWidth" 62 android:maxWidth="@dimen/custom_tabs_toolbar_maxWidth"
57 android:paddingTop="@dimen/custom_tabs_toolbar_vertical_padding" 63 android:paddingTop="@dimen/custom_tabs_toolbar_vertical_padding"
58 android:paddingBottom="@dimen/custom_tabs_toolbar_vertical_padding" 64 android:paddingBottom="@dimen/custom_tabs_toolbar_vertical_padding"
59 android:adjustViewBounds="true" 65 android:adjustViewBounds="true"
60 android:scaleType="centerInside" 66 android:scaleType="centerInside"
(...skipping 11 matching lines...) Expand all
72 android:contentDescription="@string/accessibility_toolbar_btn_menu" 78 android:contentDescription="@string/accessibility_toolbar_btn_menu"
73 android:background="@null" /> 79 android:background="@null" />
74 <org.chromium.chrome.browser.widget.ToolbarProgressBar 80 <org.chromium.chrome.browser.widget.ToolbarProgressBar
75 android:id="@+id/progress" 81 android:id="@+id/progress"
76 style="@style/Widget.AppCompat.ProgressBar.Horizontal" 82 style="@style/Widget.AppCompat.ProgressBar.Horizontal"
77 android:progressDrawable="@drawable/progress_bar" 83 android:progressDrawable="@drawable/progress_bar"
78 android:layout_width="match_parent" 84 android:layout_width="match_parent"
79 android:layout_height="2dp" 85 android:layout_height="2dp"
80 android:progress="0" /> 86 android:progress="0" />
81 </org.chromium.chrome.browser.toolbar.CustomTabToolbar> 87 </org.chromium.chrome.browser.toolbar.CustomTabToolbar>
OLDNEW
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbar.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698