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

Side by Side Diff: Source/bindings/scripts/v8_utilities.py

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2013 Google Inc. All rights reserved. 1 # Copyright (C) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 def deprecate_as(member): 241 def deprecate_as(member):
242 extended_attributes = member.extended_attributes 242 extended_attributes = member.extended_attributes
243 if 'DeprecateAs' not in extended_attributes: 243 if 'DeprecateAs' not in extended_attributes:
244 return None 244 return None
245 includes.add('core/frame/UseCounter.h') 245 includes.add('core/frame/UseCounter.h')
246 return extended_attributes['DeprecateAs'] 246 return extended_attributes['DeprecateAs']
247 247
248 248
249 # [Exposed] 249 # [Exposed]
250 EXPOSED_EXECUTION_CONTEXT_METHOD = { 250 EXPOSED_EXECUTION_CONTEXT_METHOD = {
251 'CompositorWorker': 'isCompositorWorkerGlobalScope',
251 'DedicatedWorker': 'isDedicatedWorkerGlobalScope', 252 'DedicatedWorker': 'isDedicatedWorkerGlobalScope',
252 'ServiceWorker': 'isServiceWorkerGlobalScope', 253 'ServiceWorker': 'isServiceWorkerGlobalScope',
253 'SharedWorker': 'isSharedWorkerGlobalScope', 254 'SharedWorker': 'isSharedWorkerGlobalScope',
254 'Window': 'isDocument', 255 'Window': 'isDocument',
255 'Worker': 'isWorkerGlobalScope', 256 'Worker': 'isWorkerGlobalScope',
256 } 257 }
257 258
258 259
259 EXPOSED_WORKERS = set([ 260 EXPOSED_WORKERS = set([
261 'CompositorWorker',
260 'DedicatedWorker', 262 'DedicatedWorker',
261 'SharedWorker', 263 'SharedWorker',
262 'ServiceWorker', 264 'ServiceWorker',
263 ]) 265 ])
264 266
265 267
266 class ExposureSet: 268 class ExposureSet:
267 """An ExposureSet is a collection of Exposure instructions.""" 269 """An ExposureSet is a collection of Exposure instructions."""
268 def __init__(self, exposures=None): 270 def __init__(self, exposures=None):
269 self.exposures = set(exposures) if exposures else set() 271 self.exposures = set(exposures) if exposures else set()
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 except StopIteration: 519 except StopIteration:
518 return None 520 return None
519 521
520 522
521 IdlInterface.indexed_property_getter = property(indexed_property_getter) 523 IdlInterface.indexed_property_getter = property(indexed_property_getter)
522 IdlInterface.indexed_property_setter = property(indexed_property_setter) 524 IdlInterface.indexed_property_setter = property(indexed_property_setter)
523 IdlInterface.indexed_property_deleter = property(indexed_property_deleter) 525 IdlInterface.indexed_property_deleter = property(indexed_property_deleter)
524 IdlInterface.named_property_getter = property(named_property_getter) 526 IdlInterface.named_property_getter = property(named_property_getter)
525 IdlInterface.named_property_setter = property(named_property_setter) 527 IdlInterface.named_property_setter = property(named_property_setter)
526 IdlInterface.named_property_deleter = property(named_property_deleter) 528 IdlInterface.named_property_deleter = property(named_property_deleter)
OLDNEW
« no previous file with comments | « Source/bindings/modules/v8/custom/custom.gypi ('k') | Source/bindings/templates/interface_base.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698