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

Unified Diff: chrome/common/extensions/docs/templates/articles/settings_override.html

Issue 143493005: Allow extensions to remove and override the bookmark shortcut key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update mac test fix Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
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..9cbe5e82d075e9d6bcaeb5c36d8b558c835ca27a
--- /dev/null
+++ b/chrome/common/extensions/docs/templates/articles/settings_override.html
@@ -0,0 +1,53 @@
+<h1>Settings Overrides</h1>
+
+<p>
+Settings overrides are a way for extensions to override selected Chrome settings
+and user interface properties.
+</p>
+
+<p>
+An extension can override one or more of the following properties:
+</p>
+
+<p>
+<b>Bookmarks User Interface:</b>
+<ul>
+ <li>
+ Bookmark button: the "star" button that is used to bookmark
+ pages. 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" : {
+ "bookmarks_ui": {
+ "remove_button": "true",
+ "remove_bookmark_shortcut": "true"
+ }
+ }</b>,
+ ...
+}</pre>
« no previous file with comments | « chrome/common/extensions/api/manifest_types.json ('k') | chrome/common/extensions/docs/templates/json/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698