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

Side by Side Diff: chrome/browser/resources/md_extensions/detail_view.html

Issue 2522303002: [MD Extensions] Add logic for opening the extension's home page (Closed)
Patch Set: add comment Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/md_extensions/detail_view.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/cr.html"> 1 <link rel="import" href="chrome://resources/html/cr.html">
2 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html"> 3 <link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/iron-f lex-layout-classes.html">
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml"> 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.h tml">
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html"> 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch eckbox.html">
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html"> 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-icon-button/paper -icon-button.html">
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html "> 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html ">
8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable-behavior.html"> 8 <link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-ani matable-behavior.html">
9 <link rel="import" href="chrome://extensions/animation_helper.html"> 9 <link rel="import" href="chrome://extensions/animation_helper.html">
10 <link rel="import" href="chrome://extensions/item_source.html"> 10 <link rel="import" href="chrome://extensions/item_source.html">
(...skipping 14 matching lines...) Expand all
25 25
26 #top-bar { 26 #top-bar {
27 align-items: center; 27 align-items: center;
28 color: var(--paper-grey-600); 28 color: var(--paper-grey-600);
29 display: flex; 29 display: flex;
30 height: 40px; 30 height: 40px;
31 margin-bottom: 30px; 31 margin-bottom: 30px;
32 padding: 8px 12px 0; 32 padding: 8px 12px 0;
33 } 33 }
34 34
35 a paper-icon-button {
36 color: var(--paper-grey-600);
37 }
38
35 #name { 39 #name {
36 flex-grow: 1; 40 flex-grow: 1;
37 } 41 }
38 42
39 .section { 43 .section {
40 border-bottom: 1px solid var(--paper-grey-400); 44 border-bottom: 1px solid var(--paper-grey-400);
41 padding: 12px 20px; 45 padding: 12px 20px;
42 } 46 }
43 47
44 .section:last-child { 48 .section:last-child {
(...skipping 22 matching lines...) Expand all
67 ul { 71 ul {
68 -webkit-padding-start: 20px; 72 -webkit-padding-start: 20px;
69 margin: 0; 73 margin: 0;
70 } 74 }
71 </style> 75 </style>
72 <div id="main"> 76 <div id="main">
73 <div id="top-bar"> 77 <div id="top-bar">
74 <paper-icon-button id="close-button" icon="arrow-back" 78 <paper-icon-button id="close-button" icon="arrow-back"
75 on-tap="onCloseButtonTap_"></paper-icon-button> 79 on-tap="onCloseButtonTap_"></paper-icon-button>
76 <span id="name">[[data.name]]</span> 80 <span id="name">[[data.name]]</span>
77 <paper-icon-button id="open-in-webstore" icon="open-in-new"> 81 <a id="open-homepage" href="[[data.homePage.url]]" tabindex="-1"
78 </paper-icon-button> 82 target="_blank" hidden$="[[!shouldShowHomepageButton_(data.*)]]">
83 <paper-icon-button icon="open-in-new"></paper-icon-button>
84 </a>
79 <paper-icon-button id="options" icon="settings" 85 <paper-icon-button id="options" icon="settings"
80 on-tap="onOptionsButtonTap_" 86 on-tap="onOptionsButtonTap_"
81 hidden$="[[!shouldShowOptionsButton_(data.*)]]"> 87 hidden$="[[!shouldShowOptionsButton_(data.*)]]">
82 </paper-icon-button> 88 </paper-icon-button>
83 </div> 89 </div>
84 <div class="section"> 90 <div class="section">
85 <div class="section-title">$i18n{itemDescriptionLabel}</div> 91 <div class="section-title">$i18n{itemDescriptionLabel}</div>
86 <div class="section-content">[[data.description]]</div> 92 <div class="section-content">[[data.description]]</div>
87 </div> 93 </div>
88 <div class="section"> 94 <div class="section">
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 <div class="section"> 158 <div class="section">
153 <div class="section-title">$i18n{itemSource}</div> 159 <div class="section-title">$i18n{itemSource}</div>
154 <div class="section-content"> 160 <div class="section-content">
155 [[computeSourceString_(data.*)]] 161 [[computeSourceString_(data.*)]]
156 </div> 162 </div>
157 </div> 163 </div>
158 </div> 164 </div>
159 </template> 165 </template>
160 <script src="chrome://extensions/detail_view.js"></script> 166 <script src="chrome://extensions/detail_view.js"></script>
161 </dom-module> 167 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/md_extensions/detail_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698