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

Side by Side Diff: chrome/test/data/extensions/bookmarks/bookmark_view.html

Issue 99172: Part 1 of sample sprucing. (Closed)
Patch Set: Added buildbot.crx, since that seems like something people might want to install. Created 11 years, 7 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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <title>Bookmark View</title> 2 <title>Bookmark View</title>
3 <style> 3 <style>
4 4
5 .bookmark { 5 .bookmark {
6 margin-left: 5px; 6 margin-left: 5px;
7 padding: 2px; 7 padding: 2px;
8 } 8 }
9 9
10 .bookmark_title { 10 .bookmark_title {
11 display: inline; 11 display: inline;
12 border: 1px solid white; 12 border: 1px solid white;
13 padding: 0px 3px; 13 padding: 0px 3px;
14 } 14 }
15 15
16 .bookmark_title:hover { 16 .bookmark_title:hover {
17 background-color: silver; 17 background-color: silver;
18 border: 1px solid black; 18 border: 1px solid black;
19 } 19 }
20 </style> 20 </style>
21 <script> 21 <script>
22 22
23 // XXX Hack: When you call window.open('chrome-extension://...'), the window is
24 // first navigated to about:blank, and then to the final URL. This confuses the
25 // code that sets up our v8 extensions, and we don't end up with them running.
26 //
27 // If we noticed this happened, reload ourselves, which should fix it.
28 if (!chromium.bookmarks)
29 location.reload();
30
23 var prefix = "bookmark_"; 31 var prefix = "bookmark_";
24 32
25 var toggleBookmark = function(event) { 33 var toggleBookmark = function(event) {
26 event.stopPropagation(); 34 event.stopPropagation();
27 var node = event.currentTarget; 35 var node = event.currentTarget;
28 var id_str = node.id; 36 var id_str = node.id;
29 if (id_str < prefix.length) 37 if (id_str < prefix.length)
30 return; 38 return;
31 var id = parseInt(id_str.substring(prefix.length)); 39 var id = parseInt(id_str.substring(prefix.length));
32 if (id == NaN) 40 if (id == NaN)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 addBookmarks(children, rootElement); 103 addBookmarks(children, rootElement);
96 }); 104 });
97 }); 105 });
98 }; 106 };
99 107
100 </script> 108 </script>
101 <body onload="loadBookmarks()"> 109 <body onload="loadBookmarks()">
102 <div id="container"> 110 <div id="container">
103 </div> 111 </div>
104 </body> 112 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698