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

Side by Side Diff: Source/devtools/scripts/compile_frontend.py

Issue 283063003: DevTools: Implement extension-based status bar buttons (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Get rid of components/module.json Created 6 years, 6 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/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 Google Inc. All rights reserved. 2 # Copyright (c) 2012 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 # `importScript` function must not be used in any files 69 # `importScript` function must not be used in any files
70 # except module headers. Refer to devtools.gyp file for 70 # except module headers. Refer to devtools.gyp file for
71 # the module header list. 71 # the module header list.
72 allowed_import_statements_files = [ 72 allowed_import_statements_files = [
73 "search/AdvancedSearchView.js", 73 "search/AdvancedSearchView.js",
74 "console/ConsolePanel.js", 74 "console/ConsolePanel.js",
75 "elements/ElementsPanel.js", 75 "elements/ElementsPanel.js",
76 "resources/ResourcesPanel.js", 76 "resources/ResourcesPanel.js",
77 "network/NetworkPanel.js", 77 "network/NetworkPanel.js",
78 "settings/SettingsScreen.js",
78 "sources/SourcesPanel.js", 79 "sources/SourcesPanel.js",
79 "timeline/TimelinePanel.js", 80 "timeline/TimelinePanel.js",
80 "profiler/ProfilesPanel.js", 81 "profiler/ProfilesPanel.js",
81 "audits/AuditsPanel.js", 82 "audits/AuditsPanel.js",
82 "layers/LayersPanel.js", 83 "layers/LayersPanel.js",
83 "extensions/ExtensionServer.js", 84 "extensions/ExtensionServer.js",
84 "source_frame/SourceFrame.js", 85 "source_frame/SourceFrame.js",
85 ] 86 ]
86 87
87 type_checked_jsdoc_tags_list = ["param", "return", "type", "enum"] 88 type_checked_jsdoc_tags_list = ["param", "return", "type", "enum"]
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 errors_found |= hasErrors(validateInjectedScriptOut) 393 errors_found |= hasErrors(validateInjectedScriptOut)
393 394
394 if errors_found: 395 if errors_found:
395 print "ERRORS DETECTED" 396 print "ERRORS DETECTED"
396 397
397 os.remove(injectedScriptSourceTmpFile) 398 os.remove(injectedScriptSourceTmpFile)
398 os.remove(injectedScriptCanvasModuleSourceTmpFile) 399 os.remove(injectedScriptCanvasModuleSourceTmpFile)
399 os.remove(compiler_args_file.name) 400 os.remove(compiler_args_file.name)
400 os.remove(protocol_externs_file) 401 os.remove(protocol_externs_file)
401 shutil.rmtree(modules_dir, True) 402 shutil.rmtree(modules_dir, True)
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ui/StatusBarButton.js ('k') | Source/devtools/scripts/frontend_modules.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698