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

Side by Side Diff: runtime/bin/platform_patch.dart

Issue 3006873002: [dart:io] Adds Platform.operatingSystemVersion (Closed)
Patch Set: Updated CHANGELOG Created 3 years, 3 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
« no previous file with comments | « runtime/bin/platform_macos.cc ('k') | runtime/bin/platform_win.cc » ('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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 @patch 5 @patch
6 class _Platform { 6 class _Platform {
7 @patch 7 @patch
8 static int _numberOfProcessors() native "Platform_NumberOfProcessors"; 8 static int _numberOfProcessors() native "Platform_NumberOfProcessors";
9 @patch 9 @patch
10 static String _pathSeparator() native "Platform_PathSeparator"; 10 static String _pathSeparator() native "Platform_PathSeparator";
11 @patch 11 @patch
12 static String _operatingSystem() native "Platform_OperatingSystem"; 12 static String _operatingSystem() native "Platform_OperatingSystem";
13 @patch 13 @patch
14 static _operatingSystemVersion() native "Platform_OperatingSystemVersion";
15 @patch
14 static _localHostname() native "Platform_LocalHostname"; 16 static _localHostname() native "Platform_LocalHostname";
15 @patch 17 @patch
16 static _executable() native "Platform_ExecutableName"; 18 static _executable() native "Platform_ExecutableName";
17 @patch 19 @patch
18 static _resolvedExecutable() native "Platform_ResolvedExecutableName"; 20 static _resolvedExecutable() native "Platform_ResolvedExecutableName";
19 @patch 21 @patch
20 static _environment() native "Platform_Environment"; 22 static _environment() native "Platform_Environment";
21 @patch 23 @patch
22 static List<String> _executableArguments() 24 static List<String> _executableArguments()
23 native "Platform_ExecutableArguments"; 25 native "Platform_ExecutableArguments";
(...skipping 20 matching lines...) Expand all
44 path.startsWith('dart:') || 46 path.startsWith('dart:') ||
45 path.startsWith('data:') || 47 path.startsWith('data:') ||
46 path.startsWith('file:')) { 48 path.startsWith('file:')) {
47 return Uri.parse(path); 49 return Uri.parse(path);
48 } else { 50 } else {
49 return Uri.base.resolveUri(new Uri.file(path)); 51 return Uri.base.resolveUri(new Uri.file(path));
50 } 52 }
51 }); 53 });
52 } 54 }
53 } 55 }
OLDNEW
« no previous file with comments | « runtime/bin/platform_macos.cc ('k') | runtime/bin/platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698