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

Side by Side Diff: chrome/common/extensions/docs/static/pageAction.html

Issue 545068: Allow extensions to add, remove, or change their page action popup. (Closed)
Patch Set: Rebase, to run trybots with test data in place. Created 10 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 unified diff | Download patch
« no previous file with comments | « chrome/common/extensions/docs/pageAction.html ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <div id="pageData-name" class="pageData">Page Actions</div> 1 <div id="pageData-name" class="pageData">Page Actions</div>
2 2
3 <!-- BEGIN AUTHORED CONTENT --> 3 <!-- BEGIN AUTHORED CONTENT -->
4 <p> 4 <p>
5 Use page actions to put icons inside the address bar. 5 Use page actions to put icons inside the address bar.
6 Page actions represent actions 6 Page actions represent actions
7 that can be taken on the current page, 7 that can be taken on the current page,
8 but that aren't applicable to all pages. 8 but that aren't applicable to all pages.
9 Some examples: 9 Some examples:
10 </p> 10 </p>
(...skipping 25 matching lines...) Expand all
36 <a href="manifest.html">extension manifest</a> 36 <a href="manifest.html">extension manifest</a>
37 like this: 37 like this:
38 </p> 38 </p>
39 39
40 <pre>{ 40 <pre>{
41 "name": "My extension", 41 "name": "My extension",
42 ... 42 ...
43 <b>"page_action": { 43 <b>"page_action": {
44 "default_icon": "icons/foo.png", <em>// <b>required</b></em> 44 "default_icon": "icons/foo.png", <em>// <b>required</b></em>
45 "default_title": "Do action", <em>// optional; shown in tooltip</em> 45 "default_title": "Do action", <em>// optional; shown in tooltip</em>
46 "popup": "popup.html" <em>// optional</em> 46 "default_popup": "popup.html" <em>// optional</em>
47 }</b>, 47 }</b>,
48 ... 48 ...
49 }</pre> 49 }</pre>
50 50
51 <h2 id="ui">Parts of the UI</h2> 51 <h2 id="ui">Parts of the UI</h2>
52 52
53 <p> 53 <p>
54 Like browser actions, 54 Like browser actions,
55 page actions have an icon and 55 page actions have an icon and
56 can also have a tooltip and popup; 56 can also have a tooltip and popup;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 <p> 109 <p>
110 You can find simple examples of using page actions in the 110 You can find simple examples of using page actions in the
111 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/pageAction/">examples/api/pageAction</a> 111 <a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extension s/docs/examples/api/pageAction/">examples/api/pageAction</a>
112 directory. 112 directory.
113 For other examples and for help in viewing the source code, see 113 For other examples and for help in viewing the source code, see
114 <a href="samples.html">Samples</a>. 114 <a href="samples.html">Samples</a>.
115 </p> 115 </p>
116 116
117 <!-- END AUTHORED CONTENT --> 117 <!-- END AUTHORED CONTENT -->
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/pageAction.html ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698