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

Side by Side Diff: utils/tip/tip.dart

Issue 8889031: move tip to utils so it can be picked up in the SDK (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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
« no previous file with comments | « utils/tip/tip.css ('k') | utils/tip/tip.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « utils/tip/tip.css ('k') | utils/tip/tip.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698