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

Side by Side Diff: third_party/chrome/tools/json_schema_compiler/model.py

Issue 12300042: Update idlsync.py to pull in dependencies required for chrome api generation. (Closed) Base URL: git://github.com/dart-lang/bleeding_edge.git@master
Patch Set: From another checkout Created 7 years, 9 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
OLDNEW
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 import copy 5 import copy
6 import os.path 6 import os.path
7 import re 7 import re
8 8
9 from json_parse import OrderedDict 9 from json_parse import OrderedDict
10 10
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 def _GetPlatforms(json): 488 def _GetPlatforms(json):
489 if 'platforms' not in json: 489 if 'platforms' not in json:
490 return None 490 return None
491 platforms = [] 491 platforms = []
492 for platform_name in json['platforms']: 492 for platform_name in json['platforms']:
493 for platform_enum in _Enum.GetAll(Platforms): 493 for platform_enum in _Enum.GetAll(Platforms):
494 if platform_name == platform_enum.name: 494 if platform_name == platform_enum.name:
495 platforms.append(platform_enum) 495 platforms.append(platform_enum)
496 break 496 break
497 return platforms 497 return platforms
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698