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

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

Issue 165216: Revert 22874 - Merge 21719 Make possible reloading extensions from the chrom... (Closed) Base URL: svn://chrome-svn/chrome/branches/195/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')
Property Changes:
Modified: svn:mergeinfo
Reverse-merged /trunk/src/chrome/browser/resources/extensions_ui.html:r21719
Reverse-merged /branches/chrome_webkit_merge_branch/chrome/browser/resources/extensions_ui.html:r69-2775
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 /**
136 * Handles an 'uninstall' button getting clicked. 128 * Handles an 'uninstall' button getting clicked.
137 */ 129 */
138 function handleUninstallExtension(node) { 130 function handleUninstallExtension(node) {
139 // Tell the C++ ExtensionDOMHandler to uninstall an extension. 131 // Tell the C++ ExtensionDOMHandler to uninstall an extension.
140 chrome.send('uninstall', [node.extensionId]); 132 chrome.send('uninstall', [node.extensionId]);
141 133
142 // Find the div above us with class 'extension' and remove it. 134 // Find the div above us with class 'extension' and remove it.
143 while (node) { 135 while (node) {
144 if (node.className == 'extension') { 136 if (node.className == 'extension') {
145 node.parentNode.removeChild(node); 137 node.parentNode.removeChild(node);
(...skipping 25 matching lines...) Expand all
171 text-align: center; 163 text-align: center;
172 } 164 }
173 165
174 div.extension-name { 166 div.extension-name {
175 font-size: large; 167 font-size: large;
176 font-weight: bold; 168 font-weight: bold;
177 margin-top: 2em; 169 margin-top: 2em;
178 text-align: left; 170 text-align: left;
179 } 171 }
180 172
181 div.extension-actions { 173 div.extension-uninstall {
182 margin: 1em; 174 margin-bottom: 1em;
183 } 175 }
184 176
185 dl { 177 dl {
186 margin: 0px 0px 3px 0px; 178 margin: 0px 0px 3px 0px;
187 } 179 }
188 180
189 table { 181 table {
190 background-color: Window; 182 background-color: Window;
191 border: 1px solid ThreeDShadow; 183 border: 1px solid ThreeDShadow;
192 border-spacing: 0px; 184 border-spacing: 0px;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 <div class="error" jsselect="errors" jscontent="$this"> 243 <div class="error" jsselect="errors" jscontent="$this">
252 Error Detail</div> 244 Error Detail</div>
253 </div> 245 </div>
254 246
255 <div class="extension-name" jsdisplay="extensions.length === 0"> 247 <div class="extension-name" jsdisplay="extensions.length === 0">
256 No Extensions Installed</div> 248 No Extensions Installed</div>
257 249
258 <div jsdisplay="extensions.length > 0"> 250 <div jsdisplay="extensions.length > 0">
259 <div class="extension" jsselect="extensions"> 251 <div class="extension" jsselect="extensions">
260 <div class="extension-name" jscontent="name">Extension Name</div> 252 <div class="extension-name" jscontent="name">Extension Name</div>
261 <div class="extension-actions"> 253 <div class="extension-uninstall">
262 <button
263 jsvalues=".extensionId:id"
264 onclick="handleReloadExtension(this)"
265 >Reload</button>
266 <button 254 <button
267 jsvalues=".extensionId:id" 255 jsvalues=".extensionId:id"
268 onclick="handleUninstallExtension(this)" 256 onclick="handleUninstallExtension(this)"
269 >Uninstall</button> 257 >Uninstall</button>
270 </div> 258 </div>
271 <dl> 259 <dl>
272 <dd>Id: <span jscontent="id">0000000000000000000000000000000000000 000</span></dd> 260 <dd>Id: <span jscontent="id">0000000000000000000000000000000000000 000</span></dd>
273 <dd> 261 <dd>
274 <span jscontent="description">Extension Description</span> 262 <span jscontent="description">Extension Description</span>
275 </dd> 263 </dd>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 <!-- TODO(aa): Debug link --> 310 <!-- TODO(aa): Debug link -->
323 </tr> 311 </tr>
324 </tbody> 312 </tbody>
325 </table> 313 </table>
326 </div> 314 </div>
327 </div> 315 </div>
328 </div> 316 </div>
329 </div> 317 </div>
330 </body> 318 </body>
331 </html> 319 </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