Home
last modified time | relevance | path

Searched refs:api_name (Results 1 – 25 of 50) sorted by relevance

12

/external/chromium_org/chrome/common/extensions/docs/server2/
Davailability_finder.py26 def _GetChannelFromFeatures(api_name, json_fs, filename): argument
31 feature = json_fs.GetFromFile('%s/%s' % (API, filename)).Get().get(api_name)
42 def _GetChannelFromApiFeatures(api_name, json_fs): argument
43 return _GetChannelFromFeatures(api_name, json_fs, '_api_features.json')
46 def _GetChannelFromManifestFeatures(api_name, json_fs): argument
48 api_name = UnixName(api_name)
49 return _GetChannelFromFeatures(api_name, json_fs, '_manifest_features.json')
52 def _GetChannelFromPermissionFeatures(api_name, json_fs): argument
53 return _GetChannelFromFeatures(api_name, json_fs, '_permission_features.json')
78 def _GetPredeterminedAvailability(self, api_name): argument
[all …]
Dapi_list_data_source.py42 def _GetChannelInfo(api_name): argument
43 return self._availability_finder.GetApiAvailability(api_name)
45 def _GetApiPlatform(api_name): argument
46 feature = self._features_bundle.GetAPIFeatures().Get()[api_name]
56 for api_name, api_model in self._api_models.IterModels():
57 if not self._api_categorizer.IsDocumented(platform, api_name):
60 'name': api_name,
62 'platforms': _GetApiPlatform(api_name),
64 category = self._api_categorizer.GetCategory(platform, api_name)
66 channel_info = _GetChannelInfo(api_name)
Dapi_models.py44 def GetModel(self, api_name): argument
47 if os.path.splitext(api_name)[1] in ('.json', '.idl'):
48 if not api_name.startswith(API + '/'):
49 api_name = posixpath.join(API, api_name)
50 return self._model_cache.GetFromFile(api_name)
52 assert not api_name.startswith(API)
56 file_name = UnixName(api_name).replace('.', '_')
Dapi_categorizer.py33 def GetCategory(self, platform, api_name): argument
39 if (api_name.endswith('Private') or
40 api_name not in documented_apis):
42 if api_name.startswith('experimental.'):
46 def IsDocumented(self, platform, api_name): argument
47 return (api_name in self._GenerateAPICategories(platform))
Dapi_data_source.py69 api_name, argument
87 self._namespace = api_models.GetModel(api_name).Get()
466 def __init__(self, api_name, samples): argument
467 self._api_name = api_name
536 def _GetSchemaModel(self, api_name, disable_refs): argument
537 jsc_model = self._GetModelCache(disable_refs).Get(api_name).Get()
542 api_name,
551 self._GetModelCache(disable_refs).Set(api_name, jsc_model)
567 def get(self, api_name, disable_refs=False): argument
569 self._get_schema_model(api_name, disable_refs))
Dreference_resolver.py87 api_name = '.'.join(parts[:i])
88 if api_name not in api_list:
91 api = self._api_data_source.get(api_name, disable_refs=True)
118 'href': '%s.html#%s-%s' % (api_name, category, name.replace('.', '-')),
Dintro_data_source.py35 api_name = os.path.splitext(intro_path.split('/')[-1])[0]
39 namespace=api_name),
/external/chromium_org/ppapi/thunk/
Dinterfaces_preamble.h14 #define PROXIED_API(api_name) argument
19 #define UNPROXIED_API(api_name) argument
24 #define PROXIED_IFACE(api_name, iface_str, iface_struct) argument
29 #define UNPROXIED_IFACE(api_name, iface_str, iface_struct) argument
/external/chromium_org/ppapi/proxy/
Dinterface_list.cc133 #define PROXY_CLASS_NAME(api_name) api_name##_Proxy argument
137 #define PROXY_API_ID(api_name) PROXY_CLASS_NAME(api_name)::kApiID argument
140 #define PROXY_FACTORY_NAME(api_name) ProxyFactory<PROXY_CLASS_NAME(api_name)> argument
177 #define PROXIED_API(api_name) \ in InterfaceList() argument
178 AddProxy(PROXY_API_ID(api_name), &PROXY_FACTORY_NAME(api_name)); in InterfaceList()
183 #define PROXIED_IFACE(api_name, iface_str, iface_struct) \ in InterfaceList() argument
184 AddPPB(iface_str, PROXY_API_ID(api_name), \ in InterfaceList()
/external/chromium_org/chrome/browser/component_updater/
Dppapi_utils.cc116 #define UNPROXIED_IFACE(api_name, iface_str, iface_struct) \ in IsSupportedPepperInterface() argument
119 #define PROXIED_IFACE(api_name, iface_str, iface_struct) \ in IsSupportedPepperInterface() argument
120 UNPROXIED_IFACE(api_name, iface_str, iface_struct) in IsSupportedPepperInterface()
/external/chromium_org/ppapi/generators/
Didl_thunk.py105 def _StripApiName(api_name): argument
107 if api_name.endswith('Trusted'):
108 api_name = api_name[:-len('Trusted')]
109 if api_name.endswith('_Dev'):
110 api_name = api_name[:-len('_Dev')]
111 if api_name.endswith('_Private'):
112 api_name = api_name[:-len('_Private')]
113 return api_name
119 api_name = _StripApiName(interface.GetName()) + '_API'
123 api_name = member.GetProperty('api')
[all …]
/external/chromium_org/chrome/renderer/extensions/
Dchrome_v8_context.cc99 const std::string& api_name) { in IsAnyFeatureAvailableToContext() argument
101 api_name, in IsAnyFeatureAvailableToContext()
108 const std::string& api_name) { in GetAvailability() argument
115 (api_name == "runtime.connect" || api_name == "runtime.sendMessage")) { in GetAvailability()
118 return ExtensionAPI::GetSharedInstance()->IsAvailable(api_name, in GetAvailability()
Ddispatcher.cc233 std::string api_name = *v8::String::Utf8Value(args[0]->ToString()); in GetAvailability() local
234 Feature::Availability availability = context_->GetAvailability(api_name); in GetAvailability()
745 const std::string& api_name = *it; in AddOrRemoveBindingsForContext() local
746 Feature* feature = api_feature_provider->GetFeature(api_name); in AddOrRemoveBindingsForContext()
767 if (context->IsAnyFeatureAvailableToContext(api_name)) in AddOrRemoveBindingsForContext()
768 RegisterBinding(api_name, context); in AddOrRemoveBindingsForContext()
776 const std::string& api_name, in GetOrCreateBindObjectIfAvailable() argument
780 base::SplitString(api_name, '.', &split); in GetOrCreateBindObjectIfAvailable()
802 !context->GetAvailability(api_name).is_available()) { in GetOrCreateBindObjectIfAvailable()
825 void Dispatcher::RegisterBinding(const std::string& api_name, in RegisterBinding() argument
[all …]
Ddom_activity_logger.cc29 const WebString& api_name, in log() argument
49 params.api_call = api_name.utf8(); in log()
Dbinding_generating_native_handler.cc13 const std::string& api_name, in BindingGeneratingNativeHandler() argument
16 api_name_(api_name), in BindingGeneratingNativeHandler()
/external/chromium_org/extensions/common/
Dextension_api.cc279 bool ExtensionAPI::IsAnyFeatureAvailableToContext(const std::string& api_name, in IsAnyFeatureAvailableToContext() argument
293 if (feature_name != api_name && feature_name.find(api_name + ".") == 0) { in IsAnyFeatureAvailableToContext()
298 return IsAvailable(api_name, extension, context, url).is_available(); in IsAnyFeatureAvailableToContext()
336 std::string api_name = GetAPINameFromFullName(full_name, &child_name); in GetSchema() local
339 SchemaMap::iterator maybe_schema = schemas_.find(api_name); in GetSchema()
345 unloaded_schemas_.find(api_name); in GetSchema()
350 GeneratedSchemas::IsGenerated(api_name)) { in GetSchema()
351 LoadSchema(api_name, GeneratedSchemas::Get(api_name)); in GetSchema()
356 maybe_schema = schemas_.find(api_name); in GetSchema()
/external/chromium_org/chrome/browser/extensions/activity_log/
Dactivity_actions.cc49 const std::string& api_name) in Action() argument
53 api_name_(api_name), in Action()
65 new Action(extension_id(), time(), action_type(), api_name())); in Clone()
169 result->api_call.reset(new std::string(api_name())); in ConvertToExtensionActivity()
306 if (lhs->api_name() != rhs->api_name()) in operator ()()
307 return lhs->api_name() < rhs->api_name(); in operator ()()
Dactivity_actions.h50 const std::string& api_name);
67 const std::string& api_name() const { return api_name_; } in api_name() function
68 void set_api_name(const std::string api_name) { api_name_ = api_name; } in set_api_name() argument
Dfullstream_ui_policy.cc89 statement.BindString(3, action.api_name()); in FlushDatabase()
124 const std::string& api_name, in DoReadFilteredData() argument
145 if (!api_name.empty()) { in DoReadFilteredData()
172 if (!api_name.empty()) in DoReadFilteredData()
173 query.BindString(++i, api_name); in DoReadFilteredData()
357 const std::string& api_name, in ReadFilteredData() argument
370 api_name, in ReadFilteredData()
Dactivity_log.cc68 const char* api_name; member
143 const std::string& api_name) const { in Lookup()
145 api_database_.find(api_name); in Lookup()
157 api_database_[info->api_name] = info; in ApiInfoDatabase()
222 action->action_type(), action->api_name()); in ExtractUrls()
552 StartsWithASCII(action->api_name(), kDomXhrPrefix, true) && in LogAction()
632 const std::string& api_name, in GetFilteredActions() argument
640 extension_id, type, api_name, page_url, arg_url, daysAgo, callback); in GetFilteredActions()
Dactivity_log_unittest.cc107 ASSERT_EQ("", last->api_name()); in Arguments_Prerender()
119 ASSERT_EQ("XMLHttpRequest.open", action->api_name()); in RetrieveActions_ArgUrlExtraction()
133 ASSERT_EQ("XMLHttpRequest.open", action->api_name()); in RetrieveActions_ArgUrlExtraction()
139 ASSERT_EQ("XMLHttpRequest.open", action->api_name()); in RetrieveActions_ArgUrlExtraction()
145 ASSERT_EQ("windows.create", action->api_name()); in RetrieveActions_ArgUrlExtraction()
Duma_policy.cc89 action->api_name() == "tabs.executeScript") { in MatchActionToStatus()
114 if (action->api_name() == "HTMLDocument.write" || in MatchActionToStatus()
115 action->api_name() == "HTMLDocument.writeln") { in MatchActionToStatus()
117 } else if (action->api_name() == "Element.innerHTML") { in MatchActionToStatus()
119 } else if (action->api_name() == "Document.createElement") { in MatchActionToStatus()
Dfullstream_ui_policy.h34 const std::string& api_name,
102 const std::string& api_name,
/external/chromium_org/chrome/browser/
Dthree_d_api_observer.cc102 base::string16 api_name; in GetMessageText() local
105 api_name = l10n_util::GetStringUTF16(IDS_3D_APIS_WEBGL_NAME); in GetMessageText()
108 api_name = l10n_util::GetStringUTF16(IDS_3D_APIS_PEPPER_3D_NAME); in GetMessageText()
113 api_name); in GetMessageText()
/external/chromium_org/content/renderer/media/
Dwebrtc_uma_histograms.h24 inline void UpdateWebRTCMethodCount(JavaScriptAPIName api_name) { in UpdateWebRTCMethodCount() argument
25 UMA_HISTOGRAM_ENUMERATION("WebRTC.webkitApiCount", api_name, INVALID_NAME); in UpdateWebRTCMethodCount()

12