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

Side by Side Diff: chrome/browser/resources/extensions_ui.html

Issue 159323: Make possible restarting extensions from the chrome://extensions/ page.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="title"></title> 5 <title i18n-content="title"></title>
6 <script> 6 <script>
7 /** 7 /**
8 * This variable structure is here to document the structure that the template 8 * This variable structure is here to document the structure that the template
9 * expects to correctly populate the page. 9 * expects to correctly populate the page.
10 */ 10 */
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 function sendInspectMessage(viewData) { 118 function sendInspectMessage(viewData) {
119 // TODO(aa): This is ghetto, but DOMUIBindings doesn't support sending 119 // TODO(aa): This is ghetto, but DOMUIBindings doesn't support sending
120 // anything other than arrays of strings, and this is all going to get 120 // anything other than arrays of strings, and this is all going to get
121 // replaced with V8 extensions soon anyway. 121 // replaced with V8 extensions soon anyway.
122 chrome.send('inspect', [ 122 chrome.send('inspect', [
123 String(viewData.renderProcessId), String(viewData.renderViewId) 123 String(viewData.renderProcessId), String(viewData.renderViewId)
124 ]); 124 ]);
125 } 125 }
126 126
127 /** 127 /**
128 * Handles a 'reload' button getting clicked.
129 */
130 function handleReloadExtension(node) {
131 // Tell the C++ ExtensionDOMHandler to reload the extension.
132 chrome.send('reload', [node.extensionId]);
133 }
134
135 /**
128 * Handles an 'uninstall' button getting clicked. 136 * Handles an 'uninstall' button getting clicked.
129 */ 137 */
130 function handleUninstallExtension(node) { 138 function handleUninstallExtension(node) {
131 // Tell the C++ ExtensionDOMHandler to uninstall an extension. 139 // Tell the C++ ExtensionDOMHandler to uninstall an extension.
132 chrome.send('uninstall', [node.extensionId]); 140 chrome.send('uninstall', [node.extensionId]);
133 141
134 // Find the div above us with class 'extension' and remove it. 142 // Find the div above us with class 'extension' and remove it.
135 while (node) { 143 while (node) {
136 if (node.className == 'extension') { 144 if (node.className == 'extension') {
137 node.parentNode.removeChild(node); 145 node.parentNode.removeChild(node);
(...skipping 25 matching lines...) Expand all
163 text-align: center; 171 text-align: center;
164 } 172 }
165 173
166 div.extension-name { 174 div.extension-name {
167 font-size: large; 175 font-size: large;
168 font-weight: bold; 176 font-weight: bold;
169 margin-top: 2em; 177 margin-top: 2em;
170 text-align: left; 178 text-align: left;
171 } 179 }
172 180
173 div.extension-uninstall { 181 div.extension-actions {
174 margin-bottom: 1em; 182 margin: 1em;
175 } 183 }
176 184
177 dl { 185 dl {
178 margin: 0px 0px 3px 0px; 186 margin: 0px 0px 3px 0px;
179 } 187 }
180 188
181 table { 189 table {
182 background-color: Window; 190 background-color: Window;
183 border: 1px solid ThreeDShadow; 191 border: 1px solid ThreeDShadow;
184 border-spacing: 0px; 192 border-spacing: 0px;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 <div class="error" jsselect="errors" jscontent="$this"> 251 <div class="error" jsselect="errors" jscontent="$this">
244 Error Detail</div> 252 Error Detail</div>
245 </div> 253 </div>
246 254
247 <div class="extension-name" jsdisplay="extensions.length === 0"> 255 <div class="extension-name" jsdisplay="extensions.length === 0">
248 No Extensions Installed</div> 256 No Extensions Installed</div>
249 257
250 <div jsdisplay="extensions.length > 0"> 258 <div jsdisplay="extensions.length > 0">
251 <div class="extension" jsselect="extensions"> 259 <div class="extension" jsselect="extensions">
252 <div class="extension-name" jscontent="name">Extension Name</div> 260 <div class="extension-name" jscontent="name">Extension Name</div>
253 <div class="extension-uninstall"> 261 <div class="extension-actions">
262 <button
263 jsvalues=".extensionId:id"
264 onclick="handleReloadExtension(this)"
265 >Reload</button>
254 <button 266 <button
255 jsvalues=".extensionId:id" 267 jsvalues=".extensionId:id"
256 onclick="handleUninstallExtension(this)" 268 onclick="handleUninstallExtension(this)"
257 >Uninstall</button> 269 >Uninstall</button>
258 </div> 270 </div>
259 <dl> 271 <dl>
260 <dd>Id: <span jscontent="id">0000000000000000000000000000000000000 000</span></dd> 272 <dd>Id: <span jscontent="id">0000000000000000000000000000000000000 000</span></dd>
261 <dd> 273 <dd>
262 <span jscontent="description">Extension Description</span> 274 <span jscontent="description">Extension Description</span>
263 </dd> 275 </dd>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 <!-- TODO(aa): Debug link --> 322 <!-- TODO(aa): Debug link -->
311 </tr> 323 </tr>
312 </tbody> 324 </tbody>
313 </table> 325 </table>
314 </div> 326 </div>
315 </div> 327 </div>
316 </div> 328 </div>
317 </div> 329 </div>
318 </body> 330 </body>
319 </html> 331 </html>
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698