| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This giant file has pieces for compiling dart in the browser, injecting | 6 * This giant file has pieces for compiling dart in the browser, injecting |
| 7 * scripts into pages and a bunch of classes to build a simple dart editor. | 7 * scripts into pages and a bunch of classes to build a simple dart editor. |
| 8 * | 8 * |
| 9 * TODO(jimhug): Separate these pieces cleanly. | 9 * TODO(jimhug): Separate these pieces cleanly. |
| 10 */ | 10 */ |
| 11 | 11 |
| 12 #import('dart:dom'); | 12 #import('dart:dom'); |
| 13 #import('../lang.dart'); | 13 #import('../../frog/lang.dart'); |
| 14 #import('../file_system_dom.dart'); | 14 #import('../../frog/file_system_dom.dart'); |
| 15 | 15 |
| 16 | 16 |
| 17 void main() { | 17 void main() { |
| 18 final systemPath = getRootPath(window) + '/..'; | 18 final systemPath = getRootPath(window) + '/..'; |
| 19 final userPath = getRootPath(window.parent); | 19 final userPath = getRootPath(window.parent); |
| 20 | 20 |
| 21 if (window !== window.parent) { | 21 if (window !== window.parent) { |
| 22 // I'm in an iframe - frogify my surrounding code unless dart is native. | 22 // I'm in an iframe - frogify my surrounding code unless dart is native. |
| 23 if (!document.implementation.hasFeature('dart', '')) { | 23 if (!document.implementation.hasFeature('dart', '')) { |
| 24 // Suppress warnings to avoid diff-based tests from failing on them. | 24 // Suppress warnings to avoid diff-based tests from failing on them. |
| (...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 return Classification.KEYWORD; | 1615 return Classification.KEYWORD; |
| 1616 | 1616 |
| 1617 case TokenKind.WHITESPACE: | 1617 case TokenKind.WHITESPACE: |
| 1618 case TokenKind.END_OF_FILE: | 1618 case TokenKind.END_OF_FILE: |
| 1619 return Classification.NONE; | 1619 return Classification.NONE; |
| 1620 | 1620 |
| 1621 default: | 1621 default: |
| 1622 return Classification.NONE; | 1622 return Classification.NONE; |
| 1623 } | 1623 } |
| 1624 } | 1624 } |
| OLD | NEW |