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

Side by Side Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.html

Issue 2280513002: MD History: promote menu button to show clear browsing data in narrow mode (Closed)
Patch Set: merge Created 4 years, 3 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 | « chrome/common/pref_names.cc ('k') | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/polymer.html"> 1 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm l">
2 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-media-query/iron-m edia-query.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-tooltip/paper-too ltip.html">
4 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se arch_field.html"> 6 <link rel="import" href="chrome://resources/cr_elements/cr_toolbar/cr_toolbar_se arch_field.html">
7 <link rel="import" href="chrome://resources/cr_elements/icons.html">
5 8
6 <dom-module id="cr-toolbar"> 9 <dom-module id="cr-toolbar">
7 <template> 10 <template>
8 <style> 11 <style>
9 :host { 12 :host {
10 --cr-toolbar-field-width: 580px; 13 --cr-toolbar-field-width: 580px;
11 color: #fff; 14 color: #fff;
12 display: flex; 15 display: flex;
13 height: 56px; 16 height: 56px;
14 } 17 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 @apply(--cr-toolbar-right-content-wide); 67 @apply(--cr-toolbar-right-content-wide);
65 } 68 }
66 69
67 :host([narrow_]) #centeredContent { 70 :host([narrow_]) #centeredContent {
68 justify-content: flex-end; 71 justify-content: flex-end;
69 } 72 }
70 73
71 :host([narrow_][showing-search_]) #leftContent { 74 :host([narrow_][showing-search_]) #leftContent {
72 opacity: 0; 75 opacity: 0;
73 } 76 }
77
78 paper-tooltip {
tsergeant 2016/09/16 01:23:08 This doesn't layout correctly in RTL -- the toolti
Dan Beam 2016/09/17 00:21:38 Done.
79 --paper-tooltip: {
80 align-items: center;
81 display: flex;
82 font-size: 92.3%;
83 font-weight: 500;
84 padding: 6px 12px 6px 8px;
85 white-space: nowrap;
86 };
87 }
88
89 iron-icon {
90 --iron-icon-height: 20px;
91 --iron-icon-width: 20px;
92 -webkit-margin-start: 12px;
93 }
94
95 .arrow {
96 -webkit-clip-path: polygon(0 100%, 100% 100%, 50% 0); /* Up arrow. */
97 background: inherit;
98 left: 10px;
99 height: 6px;
100 position: absolute;
101 top: -6px;
102 width: 12px;
103 }
74 </style> 104 </style>
75 <div id="leftContent"> 105 <div id="leftContent">
76 <template is="dom-if" if="[[showMenu]]"> 106 <template is="dom-if" if="[[showMenu]]">
77 <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_" 107 <paper-icon-button id="menuButton" icon="cr:menu" on-tap="onMenuTap_"
78 title="[[menuLabel]]"> 108 title="[[titleIfNotShowMenuPromo_(menuLabel, showMenuPromo)]]"
109 aria-label$="[[menuLabel]]">
79 </paper-icon-button> 110 </paper-icon-button>
111 <template is="dom-if" if="[[showMenuPromo]]">
112 <paper-tooltip for="menuButton" position="bottom" offset="20"
113 manual-mode fit-to-visible-bounds>
114 <div class="arrow"></div>
115 [[menuPromo]]
116 <iron-icon icon="cr:clear" on-tap="onMenuPromoCloseTap_"
117 role="button" tabindex="0" aria-label$="[[closeMenuPromo]]">
tsergeant 2016/09/16 01:23:08 When I tab to the icon, I can't actually interact
Dan Beam 2016/09/17 00:21:38 Done.
118 </iron-icon>
119 </paper-tooltip>
120 </template>
80 </template> 121 </template>
81 <h1>[[pageName]]</h1> 122 <h1>[[pageName]]</h1>
82 </div> 123 </div>
83 124
84 <div id="centeredContent"> 125 <div id="centeredContent">
85 <cr-toolbar-search-field id="search" narrow="[[narrow_]]" 126 <cr-toolbar-search-field id="search" narrow="[[narrow_]]"
86 label="[[searchPrompt]]" clear-label="[[clearLabel]]" 127 label="[[searchPrompt]]" clear-label="[[clearLabel]]"
87 spinner-active="[[spinnerActive]]" 128 spinner-active="[[spinnerActive]]"
88 showing-search="{{showingSearch_}}"> 129 showing-search="{{showingSearch_}}">
89 </cr-toolbar-search-field> 130 </cr-toolbar-search-field>
90 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}"> 131 <iron-media-query query="(max-width: 900px)" query-matches="{{narrow_}}">
91 </iron-media-query> 132 </iron-media-query>
92 </div> 133 </div>
93 134
94 <div id="rightContent"> 135 <div id="rightContent">
95 <content select=".more-actions"></content> 136 <content select=".more-actions"></content>
96 </div> 137 </div>
97 </template> 138 </template>
98 <script src="cr_toolbar.js"></script> 139 <script src="cr_toolbar.js"></script>
99 </dom-module> 140 </dom-module>
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698