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

Side by Side Diff: site/try/src/settings.dart

Issue 408783002: Enable Try Dart to run on IE11. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library trydart.settings; 5 library trydart.settings;
6 6
7 import 'user_option.dart'; 7 import 'user_option.dart';
8 8
9 const BooleanUserOption _alwaysRunInWorker = 9 const BooleanUserOption _alwaysRunInWorker =
10 const BooleanUserOption('alwaysRunInWorker'); 10 const BooleanUserOption('alwaysRunInWorker');
11 11
12 bool get alwaysRunInWorker => _alwaysRunInWorker.value; 12 bool get alwaysRunInWorker => _alwaysRunInWorker.value;
13 13
14 void set alwaysRunInWorker(bool b) { 14 void set alwaysRunInWorker(bool b) {
15 _alwaysRunInWorker.value = b; 15 _alwaysRunInWorker.value = b;
16 } 16 }
17 17
18 const BooleanUserOption _alwaysRunInIframe =
19 const BooleanUserOption('alwaysRunInIframe');
ahe 2014/07/21 08:16:00 Can we make these settings hidden and automaticall
aam-me 2014/07/21 12:20:38 Acknowledged.
20
21 bool get alwaysRunInIframe => _alwaysRunInIframe.value;
ahe 2014/07/21 08:16:00 Since this is a new option, I prefer not adding th
aam-me 2014/07/21 12:20:38 Acknowledged.
22
23 void set alwaysRunInIframe(bool b) {
24 _alwaysRunInIframe.value = b;
25 }
26
27 const BooleanUserOption _communicateViaBlobs =
28 const BooleanUserOption('communicateViaBlobs');
29
30 bool get communicateViaBlobs => _communicateViaBlobs.value;
31
32 void set communicateViaBlobs(bool b) {
33 _communicateViaBlobs.value = b;
34 }
35
18 const BooleanUserOption _verboseCompiler = 36 const BooleanUserOption _verboseCompiler =
19 const BooleanUserOption('verboseCompiler'); 37 const BooleanUserOption('verboseCompiler');
20 38
21 bool get verboseCompiler => _verboseCompiler.value; 39 bool get verboseCompiler => _verboseCompiler.value;
22 40
23 void set verboseCompiler(bool b) { 41 void set verboseCompiler(bool b) {
24 _verboseCompiler.value = b; 42 _verboseCompiler.value = b;
25 } 43 }
26 44
27 const BooleanUserOption _minified = 45 const BooleanUserOption _minified =
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const BooleanUserOption enableCodeCompletion = 108 const BooleanUserOption enableCodeCompletion =
91 const BooleanUserOption('enableCodeCompletion', isHidden: true); 109 const BooleanUserOption('enableCodeCompletion', isHidden: true);
92 110
93 const BooleanUserOption incrementalCompilation = 111 const BooleanUserOption incrementalCompilation =
94 const BooleanUserOption('incrementalCompilation'); 112 const BooleanUserOption('incrementalCompilation');
95 113
96 const BooleanUserOption live = const BooleanUserOption('live', isHidden: true); 114 const BooleanUserOption live = const BooleanUserOption('live', isHidden: true);
97 115
98 const List<UserOption> options = const <UserOption>[ 116 const List<UserOption> options = const <UserOption>[
99 _alwaysRunInWorker, 117 _alwaysRunInWorker,
118 _alwaysRunInIframe,
119 _communicateViaBlobs,
100 _verboseCompiler, 120 _verboseCompiler,
101 _minified, 121 _minified,
102 _onlyAnalyze, 122 _onlyAnalyze,
103 _enableDartMind, 123 _enableDartMind,
104 _compilationPaused, 124 _compilationPaused,
105 incrementalCompilation, 125 incrementalCompilation,
106 live, 126 live,
107 enableCodeCompletion, 127 enableCodeCompletion,
108 _codeFont, 128 _codeFont,
109 _theme, 129 _theme,
110 _currentSample, 130 _currentSample,
111 ]; 131 ];
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698