third_party/blink/renderer/bindings/scripts/web_idl/exposure.py
def is_context_dependent(self, global_names=None):
        """
        Returns True if the exposure of this construct depends on a context.

        Args:
            global_names: When specified, it's taken into account that the
                global object implements |global_names|.
        """
        assert (global_names is None
                or (isinstance(global_names, (list, tuple))
                    and all(isinstance(name, str) for name in global_names)))

        if (self.context_dependent_runtime_enabled_features
                or self.context_enabled_features or self.only_in_coi_contexts
                or self.only_in_direct_socket_contexts
                or self.only_in_secure_contexts):
            return True

        if not global_names:
            return bool(self.global_names_and_features)

        is_context_dependent = False
        for entry in self.global_names_and_features:
            if entry.global_name not in global_names:
                continue
            if entry.feature and entry.feature.is_context_dependent:
                is_context_dependent = True
        return is_context_dependent

        Returns True if the exposure of this construct depends on a context.

        Args:
            global_names: When specified, it's taken into account that the
                global object implements |global_names|.
        
Returns True if the exposure of this construct depends on a context.
Returns True if the exposure of this construct depends on a context .
def is_context_dependent(self, global_names=None):
        assert (global_names is None
                or (isinstance(global_names, (list, tuple))
                    and all(isinstance(name, str) for name in global_names)))
        if (self.context_dependent_runtime_enabled_features
                or self.context_enabled_features or self.only_in_coi_contexts
                or self.only_in_direct_socket_contexts
                or self.only_in_secure_contexts):
            return True
        if not global_names:
            return bool(self.global_names_and_features)
        is_context_dependent = False
        for entry in self.global_names_and_features:
            if entry.global_name not in global_names:
                continue
            if entry.feature and entry.feature.is_context_dependent:
                is_context_dependent = True
        return is_context_dependent
def is_context_dependent ( self , global_names = None ) : assert ( global_names is None or ( isinstance ( global_names , ( list , tuple ) ) and all ( isinstance ( name , str ) for name in global_names ) ) ) if ( self . context_dependent_runtime_enabled_features or self . context_enabled_features or self . only_in_coi_contexts or self . only_in_direct_socket_contexts or self . only_in_secure_contexts ) : return True if not global_names : return bool ( self . global_names_and_features ) is_context_dependent = False for entry in self . global_names_and_features : if entry . global_name not in global_names : continue if entry . feature and entry . feature . is_context_dependent : is_context_dependent = True return is_context_dependent
Returns True if the exposure of this construct depends on a context.
Returns True if the exposure of this construct depends on a context .
"""
        Returns True if the exposure of this construct depends on a context.

        Args:
            global_names: When specified, it's taken into account that the
                global object implements |global_names|.
        """
self
global_names
When specified, it's taken into account that the
global object implements |global_names|.
When specified it ' s taken into account that the global object implements |global_names| .