| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 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 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 # We should remove the skypy dependencies from this script. | 9 # We should remove the skypy dependencies from this script. |
| 10 sys.path.append(os.path.abspath(os.path.join(__file__, '../../../sky/tools'))) | 10 sys.path.append(os.path.abspath(os.path.join(__file__, '../../../sky/tools'))) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import StringIO | 21 import StringIO |
| 22 import subprocess | 22 import subprocess |
| 23 import time | 23 import time |
| 24 import urlparse | 24 import urlparse |
| 25 import platform | 25 import platform |
| 26 | 26 |
| 27 SUPPORTED_MIME_TYPES = [ | 27 SUPPORTED_MIME_TYPES = [ |
| 28 'text/html', | 28 'text/html', |
| 29 'text/sky', | 29 'text/sky', |
| 30 'application/dart', | 30 'application/dart', |
| 31 'application/octet-stream', |
| 31 ] | 32 ] |
| 32 | 33 |
| 33 DEFAULT_SKY_COMMAND_PORT = 7777 | 34 DEFAULT_SKY_COMMAND_PORT = 7777 |
| 34 GDB_PORT = 8888 | 35 GDB_PORT = 8888 |
| 35 SKY_SERVER_PORT = 9999 | 36 SKY_SERVER_PORT = 9999 |
| 36 DEFAULT_URL = "https://raw.githubusercontent.com/domokit/mojo/master/sky/example
s/home.sky" | 37 DEFAULT_URL = "https://raw.githubusercontent.com/domokit/mojo/master/sky/example
s/home.sky" |
| 37 | 38 |
| 38 ANDROID_PACKAGE = "org.chromium.mojo.shell" | 39 ANDROID_PACKAGE = "org.chromium.mojo.shell" |
| 39 ANDROID_ACTIVITY = "%s/.MojoShellActivity" % ANDROID_PACKAGE | 40 ANDROID_ACTIVITY = "%s/.MojoShellActivity" % ANDROID_PACKAGE |
| 40 ANDROID_APK_NAME = 'MojoShell.apk' | 41 ANDROID_APK_NAME = 'MojoShell.apk' |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 load_parser.set_defaults(func=self.load_command) | 643 load_parser.set_defaults(func=self.load_command) |
| 643 | 644 |
| 644 args = parser.parse_args() | 645 args = parser.parse_args() |
| 645 args.func(args) | 646 args.func(args) |
| 646 | 647 |
| 647 self._write_pid_file(PID_FILE_PATH, self.pids) | 648 self._write_pid_file(PID_FILE_PATH, self.pids) |
| 648 | 649 |
| 649 | 650 |
| 650 if __name__ == '__main__': | 651 if __name__ == '__main__': |
| 651 SkyDebugger().main() | 652 SkyDebugger().main() |
| OLD | NEW |