| OLD | NEW |
| 1 <div id="pageData-name" class="pageData">What's New in Extensions?</div> | 1 <div id="pageData-name" class="pageData">What's New in Extensions?</div> |
| 2 <!-- <div id="pageData-showTOC" class="pageData">true</div> --> | 2 <!-- <div id="pageData-showTOC" class="pageData">true</div> --> |
| 3 | 3 |
| 4 <p> | 4 <p> |
| 5 This page lists the API and manifest changes | 5 This page lists the API and manifest changes |
| 6 made in recent releases. | 6 made in recent releases. |
| 7 </p> | 7 </p> |
| 8 | 8 |
| 9 <ul> | 9 <ul> |
| 10 <li> <a href="#9">Google Chrome 9</a> </li> |
| 10 <li> <a href="#8">Google Chrome 8</a> </li> | 11 <li> <a href="#8">Google Chrome 8</a> </li> |
| 11 <li> <a href="#7">Google Chrome 7</a> </li> | 12 <li> <a href="#7">Google Chrome 7</a> </li> |
| 12 <li> <a href="#6">Google Chrome 6</a> </li> | 13 <li> <a href="#6">Google Chrome 6</a> </li> |
| 13 </ul> | 14 </ul> |
| 14 | 15 |
| 15 | 16 |
| 17 <h2 id="9"> Google Chrome 9 </h2> |
| 18 |
| 19 <h4> New APIs </h4> |
| 20 <ul> |
| 21 <li>The <a href="omnibox.html">omnibox API</a> allows you to |
| 22 register a keyword with Chrome's address bar. </li> |
| 23 </ul> |
| 24 |
| 25 <h4> Manifest changes </h4> |
| 26 <ul> |
| 27 <li> The <a href="manifest.html#homepage_url">homepage_url</a> field |
| 28 lets you specify the extension or app's homepage. </li> |
| 29 </ul> |
| 30 </h4> |
| 31 |
| 32 <!-- <h4> New experimental APIs </h4> --> |
| 33 |
| 34 <h4> Additions to existing APIs </h4> |
| 35 <ul> |
| 36 <li> The <a href="tabs.html#type-Tab">Tab</a> object |
| 37 now has a <code>pinned</code> property |
| 38 that's reflected in various <code>chrome.tabs</code> methods. |
| 39 For example, |
| 40 you can <a href="tabs.html#method-create">create</a> |
| 41 a pinned tab. </li> |
| 42 <li> The <a href="windows.html#method-create">chrome.windows.create()</a> |
| 43 method's first parameter can now be an array of strings, |
| 44 letting you create an array of tabs. </li> |
| 45 <li> The <a href="windows.html#method-create">chrome.windows.create()</a> |
| 46 method now has a <code>tabId</code> parameter. |
| 47 You can use it to move a tab or panel into a new window. </li> |
| 48 <li> The new |
| 49 <a href="management.html#method-get">chrome.management.get()</a> method |
| 50 lets you get information about the specified extension or app. </li> |
| 51 </ul> |
| 52 |
| 53 |
| 16 <h2 id="8"> Google Chrome 8 </h2> | 54 <h2 id="8"> Google Chrome 8 </h2> |
| 17 | 55 |
| 18 <p> | 56 <p> |
| 19 We took a break for Chrome 8. | 57 We took a break for Chrome 8. |
| 20 No API or manifest changes worth noting. | 58 No API or manifest changes worth noting. |
| 21 </p> | 59 </p> |
| 22 | 60 |
| 23 | 61 |
| 24 <h2 id="7"> Google Chrome 7 </h2> | 62 <h2 id="7"> Google Chrome 7 </h2> |
| 25 | 63 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 <li> a change </li> | 96 <li> a change </li> |
| 59 </ul> | 97 </ul> |
| 60 --> | 98 --> |
| 61 | 99 |
| 62 | 100 |
| 63 <h2 id="6">Google Chrome 6</h2> | 101 <h2 id="6">Google Chrome 6</h2> |
| 64 | 102 |
| 65 <h4> New APIs </h4> | 103 <h4> New APIs </h4> |
| 66 <ul> | 104 <ul> |
| 67 <li>The <a href="contextMenus.html">context menus API</a> allows you to | 105 <li>The <a href="contextMenus.html">context menus API</a> allows you to |
| 68 add context menus to pages or specific objects on a page | 106 add context menus to pages or specific objects on a page </li> |
| 69 <li>The <a href="cookies.html">cookies API</a> allows you to manage the | 107 <li>The <a href="cookies.html">cookies API</a> allows you to manage the |
| 70 browser's cookie system | 108 browser's cookie system </li> |
| 71 <li>The <a href="idle.html">idle API</a> allows you to detect when the | 109 <li>The <a href="idle.html">idle API</a> allows you to detect when the |
| 72 machine's idle state changes | 110 machine's idle state changes </li> |
| 73 </ul> | 111 </ul> |
| 74 | 112 |
| 75 <h4> New experimental APIs </h4> | 113 <h4> New experimental APIs </h4> |
| 76 <ul> | 114 <ul> |
| 77 <li>The <a href="experimental.omnibox.html">omnibox API</a> allows you to | 115 <li>The <a href="experimental.omnibox.html">omnibox API</a> allows you to |
| 78 add functionality to the browser's address bar | 116 add functionality to the browser's address bar </li> |
| 79 <li>The <a href="experimental.infobars.html">infobars API</a> allows you | 117 <li>The <a href="experimental.infobars.html">infobars API</a> allows you |
| 80 to add a UI panel across the top of a tab | 118 to add a UI panel across the top of a tab </li> |
| 81 </ul> | 119 </ul> |
| 82 | 120 |
| 83 <h4> Additions to existing APIs </h4> | 121 <h4> Additions to existing APIs </h4> |
| 84 <ul> | 122 <ul> |
| 85 <li>The <a | 123 <li>The <a |
| 86 href="extension.html#method-getViews">chrome.extension.getViews()</a> | 124 href="extension.html#method-getViews">chrome.extension.getViews()</a> |
| 87 method can now return popup views | 125 method can now return popup views </li> |
| 88 <li>A new <a | 126 <li>A new <a |
| 89 href="windows.html#property-WINDOW_ID_NONE">WINDOW_ID_NONE</a> constant | 127 href="windows.html#property-WINDOW_ID_NONE">WINDOW_ID_NONE</a> constant |
| 90 identifies when focus shifts away from the browser | 128 identifies when focus shifts away from the browser </li> |
| 91 <li>The new <a | 129 <li>The new <a |
| 92 href="tabs.html#method-getCurrent">chrome.tabs.getCurrent()</a> method | 130 href="tabs.html#method-getCurrent">chrome.tabs.getCurrent()</a> method |
| 93 returns the tab associated with the currently executing script | 131 returns the tab associated with the currently executing script </li> |
| 94 </ul> | 132 </ul> |
| 95 | 133 |
| 96 <h4> Manifest changes </h4> | 134 <h4> Manifest changes </h4> |
| 97 <ul> | 135 <ul> |
| 98 <li>The <a href="manifest.html#geolocation">geolocation</a> permission | 136 <li>The <a href="manifest.html#geolocation">geolocation</a> permission |
| 99 gives an extension access to the user's physical location | 137 gives an extension access to the user's physical location </li> |
| 100 <li><a href="match_patterns.html">Match patterns</a> can now select all | 138 <li><a href="match_patterns.html">Match patterns</a> can now select all |
| 101 schemes or all URLs | 139 schemes or all URLs </li> |
| 102 <li>Access to file:/// URLs no longer triggers the "access to your machine" | 140 <li>Access to file:/// URLs no longer triggers the "access to your machine" |
| 103 security warning, but now requires user opt-in from the extensions | 141 security warning, but now requires user opt-in from the extensions |
| 104 management page | 142 management page </li> |
| 105 </ul> | 143 </ul> |
| 106 | 144 |
| OLD | NEW |