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

Side by Side Diff: chrome/common/extensions/docs/examples/api/storage/stylizr.zip

Issue 8949018: Looks like a few people forgot to rebuild docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 PK£–Œ?ó}ጓ“stylizr/icon.png‰PNG 1 PK£–Œ?ó}ጓ“stylizr/icon.png‰PNG
2  2 
3 3
4 IHDRrP6Ì pHYs 4 IHDRrP6Ì pHYs
5  5 
6 šœEIDAT8”mH“QÇÏ}æö8§SK4Ó¢U¨¹eÛ,J§0t 6 šœEIDAT8”mH“QÇÏ}æö8§SK4Ó¢U¨¹eÛ,J§0t
7 _°á֛_ 7 _°á֛_
8 ëKBìíÛ( 8 ëKBìíÛ(
9 ú")8MdiaE/Ê(zù”’a„´W›Û³6uºÛ¹ÑêÑR 9 ú")8MdiaE/Ê(zù”’a„´W›Û³6uºÛ¹ÑêÑR
10 ü¹ç^Îù=眻{¥–û½ì%æíåô.óyÔEå 10 ü¹ç^Îù=眻{¥–û½ì%æíåô.óyÔEå
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // found in the LICENSE file. 180 // found in the LICENSE file.
181 181
182 // Store settings in the local, un-synchronized repository. 182 // Store settings in the local, un-synchronized repository.
183 var storage = chrome.experimental.storage.local; 183 var storage = chrome.experimental.storage.local;
184 var message = document.querySelector('#message'); 184 var message = document.querySelector('#message');
185 185
186 // Check if there is CSS specified. 186 // Check if there is CSS specified.
187 storage.get('css', function(items) { 187 storage.get('css', function(items) {
188 console.log(items); 188 console.log(items);
189 // If there is CSS specified, inject it into the page. 189 // If there is CSS specified, inject it into the page.
190 if (items.css) { 190 if (items.css) {
Finnur 2011/12/15 14:42:25 What is this file again and why is that updated al
191 chrome.tabs.insertCSS(null, {code: items.css}, function() { 191 chrome.tabs.insertCSS(null, {code: items.css}, function() {
192 if (chrome.extension.lastError) { 192 if (chrome.extension.lastError) {
193 message.innerText = 'Not allowed to inject CSS into special page.'; 193 message.innerText = 'Not allowed to inject CSS into special page.';
194 } 194 }
195 message.innerText = 'Injected style!'; 195 message.innerText = 'Injected style!';
196 }); 196 });
197 } else { 197 } else {
198 var optionsUrl = chrome.extension.getURL('options.html'); 198 var optionsUrl = chrome.extension.getURL('options.html');
199 message.innerHTML = 'Set a style in the <a target="_blank" href="' + 199 message.innerHTML = 'Set a style in the <a target="_blank" href="' +
200 optionsUrl + '">options page</a> first.'; 200 optionsUrl + '">options page</a> first.';
201 } 201 }
202 }); 202 });
203 203
204 PK£–Œ?ó}ጓ“¤stylizr/icon.pngPK×MŽ?$ Þll( Ástylizr/manifest.jsonfa67fae5afc20d9ad9b46a8d25037aa bcb89630ePK—]Ž?“*ÄG””¤`stylizr/options.htmlPK ^Ž?¶hß99¤& stylizr/options.jsPK¦]Ž?wƋD ¤stylizr/popup.htmlPK×[?Åé­ú³³ ¤Æstylizr/popup.jsPK©§ 204 PK£–Œ?ó}ጓ“¤stylizr/icon.pngPK×MŽ?$ Þll( Ástylizr/manifest.jsonfa67fae5afc20d9ad9b46a8d25037aa bcb89630ePK—]Ž?“*ÄG””¤`stylizr/options.htmlPK ^Ž?¶hß99¤& stylizr/options.jsPK¦]Ž?wƋD ¤stylizr/popup.htmlPK×[?Åé­ú³³ ¤Æstylizr/popup.jsPK©§
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698