diff options
-rw-r--r-- | chrome/common/extensions/docs/js/sample_search.js | 9 | ||||
-rw-r--r-- | chrome/common/extensions/docs/samples.html | 315 | ||||
-rw-r--r-- | chrome/common/extensions/docs/static/samples.html | 7 |
3 files changed, 238 insertions, 93 deletions
diff --git a/chrome/common/extensions/docs/js/sample_search.js b/chrome/common/extensions/docs/js/sample_search.js index 3b95094..5d8737b 100644 --- a/chrome/common/extensions/docs/js/sample_search.js +++ b/chrome/common/extensions/docs/js/sample_search.js @@ -25,6 +25,7 @@ function filterSamples() { return; } else { currentfilter = searchtext; + window.location.hash = searchinput.value; } noresults.style.display = 'none'; @@ -77,7 +78,13 @@ function initSearch() { } if (window.location.hash.length > 1) { - setFilter(window.location.hash.substring(1)); + var hash = window.location.hash.substring(1); + var elem = document.getElementById(hash); + if (elem) { + elem.scrollIntoView(); + } else { + setFilter(hash); + } } }; diff --git a/chrome/common/extensions/docs/samples.html b/chrome/common/extensions/docs/samples.html index 85ae945..ae2d2b8 100644 --- a/chrome/common/extensions/docs/samples.html +++ b/chrome/common/extensions/docs/samples.html @@ -355,7 +355,7 @@ <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_icon_path/">A browser action which changes its icon when clicked.</a> + <a href="#0262260daf0c8f7b28feff2ef23b05e7abf9d1e0">A browser action which changes its icon when clicked.</a> </h2> <p class="metadata features">Uses <span> @@ -388,12 +388,15 @@ </li> </ul> </div> - <div><a href="examples/api/browserAction/set_icon_path.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_icon_path/">Browse source</a> + - <a href="examples/api/browserAction/set_icon_path.zip">Download source</a> + </div> </div><div class="sample" id="ea2894c41cb8e80a4433a3e6c5772dadce9be90d"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_page_color/">A browser action with a popup that changes the page color.</a> + <a href="#ea2894c41cb8e80a4433a3e6c5772dadce9be90d">A browser action with a popup that changes the page color.</a> </h2> <p class="metadata features">Uses <span> @@ -424,12 +427,15 @@ </li> </ul> </div> - <div><a href="examples/api/browserAction/set_page_color.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/set_page_color/">Browse source</a> + - <a href="examples/api/browserAction/set_page_color.zip">Download source</a> + </div> </div><div class="sample" id="ede3c47b7757245be42ec33fd5ca63df4b490066"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/make_page_red/">A browser action with no icon that makes the page red</a> + <a href="#ede3c47b7757245be42ec33fd5ca63df4b490066">A browser action with no icon that makes the page red</a> </h2> <p class="metadata features">Uses <span> @@ -466,12 +472,15 @@ </li> </ul> </div> - <div><a href="examples/api/browserAction/make_page_red.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/make_page_red/">Browse source</a> + - <a href="examples/api/browserAction/make_page_red.zip">Download source</a> + </div> </div><div class="sample" id="fbf0aa1a09a15ff8cc4fc7de4fd176d6c663d07a"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/">AcceptLanguage</a> + <a href="#fbf0aa1a09a15ff8cc4fc7de4fd176d6c663d07a">AcceptLanguage</a> </h2> <p class="metadata features">Uses <span> @@ -507,12 +516,15 @@ </li> </ul> </div> - <div><a href="examples/api/i18n/getMessage.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/getMessage/">Browse source</a> + - <a href="examples/api/i18n/getMessage.zip">Download source</a> + </div> </div><div class="sample" id="9a6e4ec46997fb92b324974afa08a3d007e2537f"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/set_icon/">Animated Page Action</a> + <a href="#9a6e4ec46997fb92b324974afa08a3d007e2537f">Animated Page Action</a> </h2> <p class="metadata features">Uses <span> @@ -557,12 +569,15 @@ </li> </ul> </div> - <div><a href="examples/api/pageAction/set_icon.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/set_icon/">Browse source</a> + - <a href="examples/api/pageAction/set_icon.zip">Download source</a> + </div> </div><div class="sample" id="a1f7cf79dd555b04fa8d603247a040e644996293"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/">App Launcher</a> + <a href="#a1f7cf79dd555b04fa8d603247a040e644996293">App Launcher</a> </h2> <p class="metadata features">Uses <span> @@ -602,12 +617,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/app_launcher.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/app_launcher/">Browse source</a> + - <a href="examples/extensions/app_launcher.zip">Download source</a> + </div> </div><div class="sample" id="9747e3d6a3eab39bc7c17f11a80573c62d44c7e5"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/blank_ntp/">Blank new tab page</a> + <a href="#9747e3d6a3eab39bc7c17f11a80573c62d44c7e5">Blank new tab page</a> </h2> <p class="metadata features">Uses <span> @@ -632,12 +650,15 @@ </li> </ul> </div> - <div><a href="examples/api/override/blank_ntp.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/blank_ntp/">Browse source</a> + - <a href="examples/api/override/blank_ntp.zip">Download source</a> + </div> </div><div class="sample" id="903e7277139e1e6caec123d3319cab295d8d1b3a"> <img class="icon" src="examples/extensions/fx/icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/">Chrome Sounds</a> + <a href="#903e7277139e1e6caec123d3319cab295d8d1b3a">Chrome Sounds</a> </h2> <p class="metadata features">Uses <span> @@ -709,12 +730,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/fx.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/fx/">Browse source</a> + - <a href="examples/extensions/fx.zip">Download source</a> + </div> </div><div class="sample" id="0e790e035a4a00b6f1def5ef9a7d7be1bce95ab5"> <img class="icon" src="examples/extensions/buildbot/icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/">Chromium Buildbot Monitor</a> + <a href="#0e790e035a4a00b6f1def5ef9a7d7be1bce95ab5">Chromium Buildbot Monitor</a> </h2> <p class="metadata features">Uses <span> @@ -761,12 +785,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/buildbot.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/buildbot/">Browse source</a> + - <a href="examples/extensions/buildbot.zip">Download source</a> + </div> </div><div class="sample" id="ac31228200b41a87982e386cc90d3a6eee4ad885"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/chrome_search/">Chromium Search</a> + <a href="#ac31228200b41a87982e386cc90d3a6eee4ad885">Chromium Search</a> </h2> <p class="metadata features">Uses <span> @@ -808,12 +835,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/chrome_search.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/chrome_search/">Browse source</a> + - <a href="examples/extensions/chrome_search.zip">Download source</a> + </div> </div><div class="sample" id="7d5d6cf195bc25480256618e360aa38c6e6fba82"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/cld/">CLD</a> + <a href="#7d5d6cf195bc25480256618e360aa38c6e6fba82">CLD</a> </h2> <p class="metadata features">Uses <span> @@ -854,12 +884,15 @@ </li> </ul> </div> - <div><a href="examples/api/i18n/cld.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/i18n/cld/">Browse source</a> + - <a href="examples/api/i18n/cld.zip">Download source</a> + </div> </div><div class="sample" id="5d81304a17cf7ac2887484f730fbd2b01e51e166"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/">Context Menus Sample</a> + <a href="#5d81304a17cf7ac2887484f730fbd2b01e51e166">Context Menus Sample</a> </h2> <p class="metadata features">Uses <span> @@ -889,12 +922,15 @@ </li> </ul> </div> - <div><a href="examples/api/contextMenus/basic.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/contextMenus/basic/">Browse source</a> + - <a href="examples/api/contextMenus/basic.zip">Download source</a> + </div> </div><div class="sample" id="4daa6becd0899a54776d9cf7f09613ed1a9f4d77"> <img class="icon" src="examples/api/cookies/cookie.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">Cookie API Test Extension</a> + <a href="#4daa6becd0899a54776d9cf7f09613ed1a9f4d77">Cookie API Test Extension</a> </h2> <p class="metadata features">Uses <span> @@ -948,12 +984,15 @@ </li> </ul> </div> - <div><a href="examples/api/cookies.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/cookies/">Browse source</a> + - <a href="examples/api/cookies.zip">Download source</a> + </div> </div><div class="sample" id="6871d09f4a96bf9d4b6cc724d00e909cee0f3902"> <img class="icon" src="examples/howto/contentscript_xhr/sample-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/">Cross-domain XMLHttpRequest from a content script</a> + <a href="#6871d09f4a96bf9d4b6cc724d00e909cee0f3902">Cross-domain XMLHttpRequest from a content script</a> </h2> <p class="metadata features">Uses <span> @@ -982,12 +1021,15 @@ </li> </ul> </div> - <div><a href="examples/howto/contentscript_xhr.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/howto/contentscript_xhr/">Browse source</a> + - <a href="examples/howto/contentscript_xhr.zip">Download source</a> + </div> </div><div class="sample" id="028eb5364924344029bcbe1d527f132fc72b34e5"> <img class="icon" src="examples/extensions/email_this_page/mail_128x128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/">Email this page (by Google)</a> + <a href="#028eb5364924344029bcbe1d527f132fc72b34e5">Email this page (by Google)</a> </h2> <p class="metadata features">Uses <span> @@ -1035,12 +1077,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/email_this_page.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/email_this_page/">Browse source</a> + - <a href="examples/extensions/email_this_page.zip">Download source</a> + </div> </div><div class="sample" id="763a08e9b06595d785568a8d392b95a2f3700258"> <img class="icon" src="examples/tutorials/analytics/analytics-extension-icon-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/">Event Tracking with Google Analytics</a> + <a href="#763a08e9b06595d785568a8d392b95a2f3700258">Event Tracking with Google Analytics</a> </h2> <p class="metadata features">Uses <span> @@ -1075,12 +1120,15 @@ </li> </ul> </div> - <div><a href="examples/tutorials/analytics.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/analytics/">Browse source</a> + - <a href="examples/tutorials/analytics.zip">Download source</a> + </div> </div><div class="sample" id="e3df888a89e35bdeb9c8bc8d03be5e1851b97c68"> <img class="icon" src="examples/api/omnibox/extension-docs/icon-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/extension-docs/">Extension Docs Search</a> + <a href="#e3df888a89e35bdeb9c8bc8d03be5e1851b97c68">Extension Docs Search</a> </h2> <p class="metadata features">Uses <span> @@ -1118,12 +1166,15 @@ </li> </ul> </div> - <div><a href="examples/api/omnibox/extension-docs.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/extension-docs/">Browse source</a> + - <a href="examples/api/omnibox/extension-docs.zip">Download source</a> + </div> </div><div class="sample" id="8b0dd31216235941bdd8eb33fda915ef5cf79a82"> <img class="icon" src="examples/extensions/calendar/images/icon-128.gif"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/">Google Calendar Checker (by Google)</a> + <a href="#8b0dd31216235941bdd8eb33fda915ef5cf79a82">Google Calendar Checker (by Google)</a> </h2> <p class="metadata features">Uses <span> @@ -1193,12 +1244,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/calendar.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/calendar/">Browse source</a> + - <a href="examples/extensions/calendar.zip">Download source</a> + </div> </div><div class="sample" id="4e35caa9742fb82dbd628892d23a781614f6eff6"> <img class="icon" src="examples/extensions/gdocs/img/docs_spreadsheets-128.gif"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/">Google Document List Viewer</a> + <a href="#4e35caa9742fb82dbd628892d23a781614f6eff6">Google Document List Viewer</a> </h2> <p class="metadata features">Uses <span> @@ -1261,12 +1315,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/gdocs.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gdocs/">Browse source</a> + - <a href="examples/extensions/gdocs.zip">Download source</a> + </div> </div><div class="sample" id="bb57f7a0132cbeb36ad7e7bb0ab75c21704234ca"> <img class="icon" src="examples/extensions/gmail/icon_128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/">Google Mail Checker</a> + <a href="#bb57f7a0132cbeb36ad7e7bb0ab75c21704234ca">Google Mail Checker</a> </h2> <p class="metadata features">Uses <span> @@ -1406,12 +1463,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/gmail.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/gmail/">Browse source</a> + - <a href="examples/extensions/gmail.zip">Download source</a> + </div> </div><div class="sample" id="1682e05ea9a1bde985123b04f6f8ac50a8a64033"> <img class="icon" src="examples/extensions/wave/128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/">Google Wave Notifier</a> + <a href="#1682e05ea9a1bde985123b04f6f8ac50a8a64033">Google Wave Notifier</a> </h2> <p class="metadata features">Uses <span> @@ -1472,12 +1532,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/wave.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/wave/">Browse source</a> + - <a href="examples/extensions/wave.zip">Download source</a> + </div> </div><div class="sample" id="14b9651fda4e57b2a5914ba73a779812201b750a"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/getstarted/">Hello World</a> + <a href="#14b9651fda4e57b2a5914ba73a779812201b750a">Hello World</a> </h2> <p class="metadata features">Uses <span> @@ -1505,12 +1568,15 @@ </li> </ul> </div> - <div><a href="examples/tutorials/getstarted.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/tutorials/getstarted/">Browse source</a> + - <a href="examples/tutorials/getstarted.zip">Download source</a> + </div> </div><div class="sample" id="2020d72f2577f53caf8e94e3dbac0fb849ceaa4d"> <img class="icon" src="examples/api/idle/idle_simple/sample-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/">Idle - Simple Example</a> + <a href="#2020d72f2577f53caf8e94e3dbac0fb849ceaa4d">Idle - Simple Example</a> </h2> <p class="metadata features">Uses <span> @@ -1549,12 +1615,15 @@ </li> </ul> </div> - <div><a href="examples/api/idle/idle_simple.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/idle/idle_simple/">Browse source</a> + - <a href="examples/api/idle/idle_simple.zip">Download source</a> + </div> </div><div class="sample" id="0ea1588bd07b20338fc21f725de1542a5fdf9726"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/override_igoogle/">iGoogle new tab page</a> + <a href="#0ea1588bd07b20338fc21f725de1542a5fdf9726">iGoogle new tab page</a> </h2> <p class="metadata features">Uses <span> @@ -1579,12 +1648,15 @@ </li> </ul> </div> - <div><a href="examples/api/override/override_igoogle.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/override/override_igoogle/">Browse source</a> + - <a href="examples/api/override/override_igoogle.zip">Download source</a> + </div> </div><div class="sample" id="646325c25f572a1d15edc73d057f821d847a4fbe"> <img class="icon" src="examples/extensions/imageinfo/imageinfo-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/">Imageinfo</a> + <a href="#646325c25f572a1d15edc73d057f821d847a4fbe">Imageinfo</a> </h2> <p class="metadata features">Uses <span> @@ -1631,12 +1703,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/imageinfo.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/imageinfo/">Browse source</a> + - <a href="examples/extensions/imageinfo.zip">Download source</a> + </div> </div><div class="sample" id="ec97ec20ca2f095d081e39f1565fc12af09ef067"> <img class="icon" src="examples/extensions/mappy/icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/">Mappy</a> + <a href="#ec97ec20ca2f095d081e39f1565fc12af09ef067">Mappy</a> </h2> <p class="metadata features">Uses <span> @@ -1692,12 +1767,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/mappy.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/mappy/">Browse source</a> + - <a href="examples/extensions/mappy.zip">Download source</a> + </div> </div><div class="sample" id="b2f5f8a790e16f091a7e4e0a39b2d0a6d32e3a6d"> <img class="icon" src="examples/api/windows/merge_windows/merge_windows_128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/merge_windows/">Merge Windows</a> + <a href="#b2f5f8a790e16f091a7e4e0a39b2d0a6d32e3a6d">Merge Windows</a> </h2> <p class="metadata features">Uses <span> @@ -1740,12 +1818,15 @@ </li> </ul> </div> - <div><a href="examples/api/windows/merge_windows.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/windows/merge_windows/">Browse source</a> + - <a href="examples/api/windows/merge_windows.zip">Download source</a> + </div> </div><div class="sample" id="51a83d2ba3a32e3ff1bdb624d4e18ccec4c4038e"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/">Message Timer</a> + <a href="#51a83d2ba3a32e3ff1bdb624d4e18ccec4c4038e">Message Timer</a> </h2> <p class="metadata features">Uses <span> @@ -1788,12 +1869,15 @@ </li> </ul> </div> - <div><a href="examples/api/messaging/timer.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/messaging/timer/">Browse source</a> + - <a href="examples/api/messaging/timer.zip">Download source</a> + </div> </div><div class="sample" id="4f6785ec4f937add6728615682dd37c9a42d9548"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/">My Bookmarks</a> + <a href="#4f6785ec4f937add6728615682dd37c9a42d9548">My Bookmarks</a> </h2> <p class="metadata features">Uses <span> @@ -1837,12 +1921,15 @@ </li> </ul> </div> - <div><a href="examples/api/bookmarks/basic.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/bookmarks/basic/">Browse source</a> + - <a href="examples/api/bookmarks/basic.zip">Download source</a> + </div> </div><div class="sample" id="597015d3bcce3da693b02314afd607bec4f55291"> <img class="icon" src="examples/extensions/news_a11y/news_icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/">News Reader</a> + <a href="#597015d3bcce3da693b02314afd607bec4f55291">News Reader</a> </h2> <p class="metadata features">Uses <span> @@ -1873,12 +1960,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/news_a11y.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_a11y/">Browse source</a> + - <a href="examples/extensions/news_a11y.zip">Download source</a> + </div> </div><div class="sample" id="6444e5c8ae112a6a433909c5e770669cd16e2e5f"> <img class="icon" src="examples/extensions/news_i18n/news_icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/">News Reader</a> + <a href="#6444e5c8ae112a6a433909c5e770669cd16e2e5f">News Reader</a> </h2> <p class="metadata features">Uses <span> @@ -1917,12 +2007,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/news_i18n.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news_i18n/">Browse source</a> + - <a href="examples/extensions/news_i18n.zip">Download source</a> + </div> </div><div class="sample" id="3aea027164cb9b732ba4a8c51cb93708891726ef"> <img class="icon" src="examples/extensions/news/images/news_icon.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/">News Reader (by Google)</a> + <a href="#3aea027164cb9b732ba4a8c51cb93708891726ef">News Reader (by Google)</a> </h2> <p class="metadata features">Uses <span> @@ -1979,12 +2072,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/news.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/news/">Browse source</a> + - <a href="examples/extensions/news.zip">Download source</a> + </div> </div><div class="sample" id="f799e26ceef2367cf836f24bcb47df4398b0df58"> <img class="icon" src="examples/api/notifications/128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/">Notification Demo</a> + <a href="#f799e26ceef2367cf836f24bcb47df4398b0df58">Notification Demo</a> </h2> <p class="metadata features">Uses <span> @@ -2022,12 +2118,15 @@ </li> </ul> </div> - <div><a href="examples/api/notifications.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/notifications/">Browse source</a> + - <a href="examples/api/notifications.zip">Download source</a> + </div> </div><div class="sample" id="e787b322bddbc6289bb31b7d7550b1bf6456a80b"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/simple-example/">Omnibox Example</a> + <a href="#e787b322bddbc6289bb31b7d7550b1bf6456a80b">Omnibox Example</a> </h2> <p class="metadata features">Uses <span> @@ -2054,12 +2153,15 @@ </li> </ul> </div> - <div><a href="examples/api/omnibox/simple-example.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/omnibox/simple-example/">Browse source</a> + - <a href="examples/api/omnibox/simple-example.zip">Download source</a> + </div> </div><div class="sample" id="8d0a50b57c26bb498be592e871001ffed91541b4"> <img class="icon" src="examples/api/pageAction/pageaction_by_content/sandwich-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/">Page action by content</a> + <a href="#8d0a50b57c26bb498be592e871001ffed91541b4">Page action by content</a> </h2> <p class="metadata features">Uses <span> @@ -2093,12 +2195,15 @@ </li> </ul> </div> - <div><a href="examples/api/pageAction/pageaction_by_content.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_content/">Browse source</a> + - <a href="examples/api/pageAction/pageaction_by_content.zip">Download source</a> + </div> </div><div class="sample" id="80b86ccc6e8520660fa591caa565826f0ed1b12c"> <img class="icon" src="examples/api/pageAction/pageaction_by_url/icon-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/">Page action by URL</a> + <a href="#80b86ccc6e8520660fa591caa565826f0ed1b12c">Page action by URL</a> </h2> <p class="metadata features">Uses <span> @@ -2131,12 +2236,15 @@ </li> </ul> </div> - <div><a href="examples/api/pageAction/pageaction_by_url.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/pageaction_by_url/">Browse source</a> + - <a href="examples/api/pageAction/pageaction_by_url.zip">Download source</a> + </div> </div><div class="sample" id="d74c3c18a1c1dd18b035149105a306f837c8823e"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/">Page Benchmarker</a> + <a href="#d74c3c18a1c1dd18b035149105a306f837c8823e">Page Benchmarker</a> </h2> <p class="metadata features">Uses <span> @@ -2236,12 +2344,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/benchmark.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/benchmark/">Browse source</a> + - <a href="examples/extensions/benchmark.zip">Download source</a> + </div> </div><div class="sample" id="e6ae17ab4ccfd7e059c8c01f25760ca5d894c7fd"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/print/">Print this page</a> + <a href="#e6ae17ab4ccfd7e059c8c01f25760ca5d894c7fd">Print this page</a> </h2> <p class="metadata features">Uses <span> @@ -2274,12 +2385,15 @@ </li> </ul> </div> - <div><a href="examples/api/browserAction/print.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/browserAction/print/">Browse source</a> + - <a href="examples/api/browserAction/print.zip">Download source</a> + </div> </div><div class="sample" id="beff6ecd9677dea0a7c648c5042165b48bb66f09"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/process_monitor/">Process Monitor</a> + <a href="#beff6ecd9677dea0a7c648c5042165b48bb66f09">Process Monitor</a> </h2> <p class="metadata features">Uses <span> @@ -2313,12 +2427,15 @@ </li> </ul> </div> - <div><a href="examples/api/processes/process_monitor.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/process_monitor/">Browse source</a> + - <a href="examples/api/processes/process_monitor.zip">Download source</a> + </div> </div><div class="sample" id="56a8d2ac24ca7bba78fd88ad57f43fc13c784497"> <img class="icon" src="examples/extensions/oauth_contacts/img/icon-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/">Sample - OAuth Contacts</a> + <a href="#56a8d2ac24ca7bba78fd88ad57f43fc13c784497">Sample - OAuth Contacts</a> </h2> <p class="metadata features">Uses <span> @@ -2373,12 +2490,15 @@ </li> </ul> </div> - <div><a href="examples/extensions/oauth_contacts.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/extensions/oauth_contacts/">Browse source</a> + - <a href="examples/extensions/oauth_contacts.zip">Download source</a> + </div> </div><div class="sample" id="38f6e1e17756ede38b1364c7114a738ca717dcbb"> <img class="icon" src="examples/api/infobars/sandwichbar/sandwich-128.png"> <img class="icon" src="images/sample-default-icon.png" style="display: none; "> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/">SandwichBar</a> + <a href="#38f6e1e17756ede38b1364c7114a738ca717dcbb">SandwichBar</a> </h2> <p class="metadata features">Uses <span> @@ -2414,12 +2534,15 @@ </li> </ul> </div> - <div><a href="examples/api/infobars/sandwichbar.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/">Browse source</a> + - <a href="examples/api/infobars/sandwichbar.zip">Download source</a> + </div> </div><div class="sample" id="fc89b35755483af30b66cd72cefa34a43a3e8312"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/show_tabs/">Show Tabs in Process</a> + <a href="#fc89b35755483af30b66cd72cefa34a43a3e8312">Show Tabs in Process</a> </h2> <p class="metadata features">Uses <span> @@ -2467,12 +2590,15 @@ </li> </ul> </div> - <div><a href="examples/api/processes/show_tabs.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/processes/show_tabs/">Browse source</a> + - <a href="examples/api/processes/show_tabs.zip">Download source</a> + </div> </div><div class="sample" id="230463f2d5c3d4d0ca13c230e1f00f2aae0a8a64"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/">Tab Inspector</a> + <a href="#230463f2d5c3d4d0ca13c230e1f00f2aae0a8a64">Tab Inspector</a> </h2> <p class="metadata features">Uses <span> @@ -2557,12 +2683,15 @@ </li> </ul> </div> - <div><a href="examples/api/tabs/inspector.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/inspector/">Browse source</a> + - <a href="examples/api/tabs/inspector.zip">Download source</a> + </div> </div><div class="sample" id="e1697cacebad05218798bf3e8a0f724517f0e8c3"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/">Test Screenshot Extension</a> + <a href="#e1697cacebad05218798bf3e8a0f724517f0e8c3">Test Screenshot Extension</a> </h2> <p class="metadata features">Uses <span> @@ -2607,12 +2736,15 @@ </li> </ul> </div> - <div><a href="examples/api/tabs/screenshot.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/tabs/screenshot/">Browse source</a> + - <a href="examples/api/tabs/screenshot.zip">Download source</a> + </div> </div><div class="sample" id="b3de91ab04b7d7a2670ca7ee9d740eb42cead0b6"> <img class="icon" style="display: none; "> <img class="icon" src="images/sample-default-icon.png"> <h2 class="name"> - <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/">Typed URL History</a> + <a href="#b3de91ab04b7d7a2670ca7ee9d740eb42cead0b6">Typed URL History</a> </h2> <p class="metadata features">Uses <span> @@ -2649,7 +2781,10 @@ </li> </ul> </div> - <div><a href="examples/api/history/showHistory.zip">Download .zip</a></div> + <div> + <a target="_blank" href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/history/showHistory/">Browse source</a> + - <a href="examples/api/history/showHistory.zip">Download source</a> + </div> </div> <div id="noresults" style="display:none"> diff --git a/chrome/common/extensions/docs/static/samples.html b/chrome/common/extensions/docs/static/samples.html index 637c491..5e0df08 100644 --- a/chrome/common/extensions/docs/static/samples.html +++ b/chrome/common/extensions/docs/static/samples.html @@ -83,7 +83,7 @@ <img jsdisplay="icon != null" class="icon" jsvalues="src:path + icon" /> <img jsdisplay="icon == null" class="icon" src="images/sample-default-icon.png" /> <h2 class="name"> - <a jscontent="name" jsvalues="href:'http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/' + path" target="_blank"></a> + <a jscontent="name" jsvalues="href:'#'+$this.id"></a> </h2> <p jsdisplay="features.length > 0" class="metadata features" jseval="$total=features.length">Uses <span jsselect="features"> @@ -106,7 +106,10 @@ </li> </ul> </div> - <div><a jsvalues="href:$this.zip_path">Download .zip</a></li></div> + <div> + <a jsvalues="href:'http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/' + path" target="_blank">Browse source</a> + - <a jsvalues="href:$this.zip_path">Download source</a> + </div> </div> <div id="noresults" style="display:none"> |