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

Side by Side Diff: chrome/common/extensions/docs/server2/converter.py

Issue 10874057: Document the activeTab extension permission. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: aa Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # Example run from the server2/ directory: 6 # Example run from the server2/ directory:
7 # $ converter.py ../static/ ../../api templates/articles/ templates/intros/ 7 # $ converter.py ../static/ ../../api templates/articles/ templates/intros/
8 # templates/public/ static/images/ -r 8 # templates/public/ static/images/ -r
9 9
10 import json 10 import json
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 'input_ime': 'input_ime', 42 'input_ime': 'input_ime',
43 'app_runtime': 'app_runtime', 43 'app_runtime': 'app_runtime',
44 'app_window': 'app_window', 44 'app_window': 'app_window',
45 } 45 }
46 46
47 # These are the extension-only APIs that don't have explicit entries in 47 # These are the extension-only APIs that don't have explicit entries in
48 # _permission_features.json, so we can't programmatically figure out that it's 48 # _permission_features.json, so we can't programmatically figure out that it's
49 # extension-only. 49 # extension-only.
50 # From api_page_generator.js:548. 50 # From api_page_generator.js:548.
51 EXTENSIONS_ONLY = [ 51 EXTENSIONS_ONLY = [
52 'activeTab',
52 'browserAction', 53 'browserAction',
53 'extension', 54 'extension',
54 'input_ime', 55 'input_ime',
55 'fontSettings', 56 'fontSettings',
56 'fileBrowserHandler', 57 'fileBrowserHandler',
57 'omnibox', 58 'omnibox',
58 'pageAction', 59 'pageAction',
59 'scriptBadge', 60 'scriptBadge',
60 'windows', 61 'windows',
61 'devtools_inspectedWindow', 62 'devtools_inspectedWindow',
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 if (not opts.file and len(args) != 6) or (opts.file and len(args) != 7): 359 if (not opts.file and len(args) != 6) or (opts.file and len(args) != 7):
359 parser.error('incorrect number of arguments.') 360 parser.error('incorrect number of arguments.')
360 361
361 if opts.file: 362 if opts.file:
362 _MoveSingleFile(*args, replace=opts.replace, svn=opts.svn) 363 _MoveSingleFile(*args, replace=opts.replace, svn=opts.svn)
363 else: 364 else:
364 _MoveAllFiles(*args, 365 _MoveAllFiles(*args,
365 replace=opts.replace, 366 replace=opts.replace,
366 exclude_dir=opts.exclude, 367 exclude_dir=opts.exclude,
367 svn=opts.svn) 368 svn=opts.svn)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698