Index: chrome/common/extensions/docs/templates/articles/settings_override.html |
diff --git a/chrome/common/extensions/docs/templates/articles/settings_override.html b/chrome/common/extensions/docs/templates/articles/settings_override.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..509bca38a52b566a15f6df1b78c3e221a5a19de7 |
--- /dev/null |
+++ b/chrome/common/extensions/docs/templates/articles/settings_override.html |
@@ -0,0 +1,74 @@ |
+<h1>Settings Overrides</h1> |
+ |
+ |
+<style> |
+#pics { |
+ margin:2em 1em 1.5em; |
+} |
+ |
+#pics td { |
+ text-align:center; |
+ width:50%!important; |
+ border:none; |
+ padding:0 1em; |
+ font-size:90%; |
+} |
+ |
+#pics img { |
+ width:188; |
+ height:246; |
+ border:none; |
+} |
+</style> |
Finnur
2014/02/10 10:14:18
Where does this css snippet come from? It doesn't
Mike Wittman
2014/02/11 23:09:45
Removed. This was originally from the Override Pag
|
+ |
+<p> |
+Settings overrides are a way for extensions to override selected Chrome settings |
+and user interface properties. |
+</p> |
+ |
+<p> |
+An extension can override the following properties: |
Finnur
2014/02/10 10:14:18
Suggest: ... override one or more ...
Mike Wittman
2014/02/11 23:09:45
Done.
|
+</p> |
+ |
+<p> |
+<b>Bookmarks User Interface:</b> |
+<ul> |
+ <li> |
+ Bookmark button: the "star" button that appears on the right side of the |
Finnur
2014/02/10 10:14:18
Heads up: Generally, it is better to not assume UI
Mike Wittman
2014/02/11 23:09:45
Updated to reference the button by function.
|
+ omnibox. Extensions may remove this button using the settings overrides, and |
+ optionally replace it with a browser action or page action. |
+ </li> |
+ |
+ <li> |
+ Bookmark shortcut: the shortcut key that is used to bookmark a page (Ctrl-D |
+ on Windows). Extensions may remove this shortcut via the settings overrides, |
+ and optionally bind their own command to it using the <code>commands</code> |
+ section of the manifest. |
+ </li> |
+</ul> |
+</p> |
+ |
+<p class="note"> |
+<b>Note:</b> Settings overrides are only enabled in the Chrome Dev release, and |
+Chrome must be started with the <code>--enable-override-bookmarks-ui=1</code> |
+command line flag to enable bookmarks user interface overrides.</p> |
+ |
+<h2 id="manifest">Manifest</h2> |
+ |
+<p> |
+Register settings overrides in the |
+<a href="manifest.html">extension manifest</a> like this: |
+</p> |
+ |
+<pre>{ |
+ "name": "My extension", |
+ ... |
+ |
+<b> "chrome_settings_overrides" : { |
Finnur
2014/02/10 10:14:18
nit: I would leave <b> on its own line, so that th
Mike Wittman
2014/02/11 23:09:45
Done.
|
+ "bookmarks_ui": { |
+ "remove_button": "true", |
+ "remove_bookmark_shortcut": "true" |
+ } |
+ }</b>, |
+ ... |
+}</pre> |