| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 namespace NativeClientVSAddIn | 5 namespace NativeClientVSAddIn |
| 6 { | 6 { |
| 7 using System; | 7 using System; |
| 8 using System.Collections.Generic; | 8 using System.Collections.Generic; |
| 9 using System.Linq; | 9 using System.Linq; |
| 10 using System.Windows.Forms; | 10 using System.Windows.Forms; |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 { | 226 { |
| 227 AssertNaCl(); | 227 AssertNaCl(); |
| 228 return GetProperty("ConfigurationGeneral", "NaClManifestPath"); | 228 return GetProperty("ConfigurationGeneral", "NaClManifestPath"); |
| 229 } | 229 } |
| 230 | 230 |
| 231 protected set | 231 protected set |
| 232 { | 232 { |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 | 235 |
| 236 /// <summary> |
| 237 /// Return true if the given platform is a NaCl platform. |
| 238 /// </summary> |
| 236 public static bool IsNaClPlatform(string platformName) | 239 public static bool IsNaClPlatform(string platformName) |
| 237 { | 240 { |
| 238 return platformName.Equals(Strings.NaCl32PlatformName, StringComparison.
OrdinalIgnoreCase) || | 241 return platformName.Equals(Strings.NaCl32PlatformName, StringComparison.
OrdinalIgnoreCase) || |
| 239 platformName.Equals(Strings.NaCl64PlatformName, StringComparison.
OrdinalIgnoreCase); | 242 platformName.Equals(Strings.NaCl64PlatformName, StringComparison.
OrdinalIgnoreCase); |
| 240 } | 243 } |
| 241 | 244 |
| 245 /// <summary> |
| 246 /// Return true if the given platform is a PPAPI platform. |
| 247 /// </summary> |
| 242 public static bool IsPepperPlatform(string platformName) | 248 public static bool IsPepperPlatform(string platformName) |
| 243 { | 249 { |
| 244 return platformName.Equals(Strings.PepperPlatformName, StringComparison.
OrdinalIgnoreCase); | 250 return platformName.Equals(Strings.PepperPlatformName, StringComparison.
OrdinalIgnoreCase); |
| 245 } | 251 } |
| 246 | 252 |
| 247 /// <summary> | 253 /// <summary> |
| 248 /// Sets the target project, platform, and configuration to get settings fro
m. | 254 /// Sets the target project, platform, and configuration to get settings fro
m. |
| 249 /// </summary> | 255 /// </summary> |
| 250 /// <param name="proj">Project to read settings from.</param> | 256 /// <param name="proj">Project to read settings from.</param> |
| 251 /// <param name="targetPlatformName">Platform type to read settings from.</p
aram> | 257 /// <param name="targetPlatformName">Platform type to read settings from.</p
aram> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 private void AssertValidPlatform() | 420 private void AssertValidPlatform() |
| 415 { | 421 { |
| 416 if (ProjectPlatform == ProjectPlatformType.Other) | 422 if (ProjectPlatform == ProjectPlatformType.Other) |
| 417 { | 423 { |
| 418 throw new Exception(string.Format( | 424 throw new Exception(string.Format( |
| 419 "Unsupported platform type: {0} platform", configuration_.Platform.Nam
e)); | 425 "Unsupported platform type: {0} platform", configuration_.Platform.Nam
e)); |
| 420 } | 426 } |
| 421 } | 427 } |
| 422 } | 428 } |
| 423 } | 429 } |
| OLD | NEW |