Home | History | Annotate | Download | only in extensions

Lines Matching full:keys

48 namespace keys = extension_manifest_keys;
79 // These keys are allowed by all crx files (apps, extensions, themes, etc).
81 keys::kCurrentLocale,
82 keys::kDefaultLocale,
83 keys::kDescription,
84 keys::kIcons,
85 keys::kName,
86 keys::kPublicKey,
87 keys::kSignature,
88 keys::kVersion,
89 keys::kUpdateURL
715 if (content_script->HasKey(keys::kRunAt)) {
717 if (!content_script->GetString(keys::kRunAt, &run_location)) {
737 if (content_script->HasKey(keys::kAllFrames)) {
739 if (!content_script->GetBoolean(keys::kAllFrames, &all_frames)) {
749 if (!content_script->GetList(keys::kMatches, &matches)) {
798 if (!LoadGlobsHelper(content_script, definition_index, keys::kIncludeGlobs,
803 if (!LoadGlobsHelper(content_script, definition_index, keys::kExcludeGlobs,
808 // js and css keys
810 if (content_script->HasKey(keys::kJs) &&
811 !content_script->GetList(keys::kJs, &js)) {
818 if (content_script->HasKey(keys::kCss) &&
819 !content_script->GetList(keys::kCss, &css)) {
916 if (extension_action->HasKey(keys::kPageActionIcons) &&
917 extension_action->GetList(keys::kPageActionIcons, &icons)) {
932 if (extension_action->HasKey(keys::kPageActionId)) {
933 if (!extension_action->GetString(keys::kPageActionId, &id)) {
942 if (extension_action->HasKey(keys::kPageActionDefaultIcon)) {
943 if (!extension_action->GetString(keys::kPageActionDefaultIcon,
955 if (extension_action->HasKey(keys::kPageActionDefaultTitle)) {
956 if (!extension_action->GetString(keys::kPageActionDefaultTitle, &title)) {
960 } else if (extension_action->HasKey(keys::kName)) {
961 if (!extension_action->GetString(keys::kName, &title)) {
970 if (extension_action->HasKey(keys::kPageActionDefaultPopup))
971 popup_key = keys::kPageActionDefaultPopup;
975 if (extension_action->HasKey(keys::kPageActionPopup)) {
979 keys::kPageActionDefaultPopup,
980 keys::kPageActionPopup);
983 popup_key = keys::kPageActionPopup;
995 if (!popup->GetString(keys::kPageActionPopupPath, &url_str)) {
1052 if (!file_browser_handler->HasKey(keys::kPageActionId) ||
1053 !file_browser_handler->GetString(keys::kPageActionId, &id)) {
1061 if (!file_browser_handler->HasKey(keys::kPageActionDefaultTitle) ||
1062 !file_browser_handler->GetString(keys::kPageActionDefaultTitle, &title)) {
1070 if (!file_browser_handler->HasKey(keys::kFileFilters) ||
1071 !file_browser_handler->GetList(keys::kFileFilters, &list_value) ||
1095 if (file_browser_handler->HasKey(keys::kPageActionDefaultIcon)) {
1097 keys::kPageActionDefaultIcon,&default_icon) ||
1114 if (extension_sidebar->HasKey(keys::kSidebarDefaultIcon)) {
1115 if (!extension_sidebar->GetString(keys::kSidebarDefaultIcon,
1126 if (extension_sidebar->HasKey(keys::kSidebarDefaultTitle)) {
1127 if (!extension_sidebar->GetString(keys::kSidebarDefaultTitle,
1137 if (extension_sidebar->HasKey(keys::kSidebarDefaultPage)) {
1138 if (!extension_sidebar->GetString(keys::kSidebarDefaultPage,
1157 if (!IsBaseCrxKey(*key) && *key != keys::kTheme)
1165 if (manifest->HasKey(keys::kApp))
1254 if (manifest->Get(keys::kLaunchLocalPath, &temp)) {
1255 if (manifest->Get(keys::kLaunchWebURL, NULL)) {
1274 } else if (manifest->Get(keys::kLaunchWebURL, &temp)) {
1347 if (!manifest->Get(keys::kLaunchContainer, &temp))
1366 if (manifest->Get(keys::kLaunchWidth, &temp)) {
1381 if (manifest->Get(keys::kLaunchHeight, &temp)) {
1405 if (!manifest->Get(keys::kIsolation, &temp))
1442 *key != keys::kApp &&
1443 *key != keys::kPermissions &&
1444 *key != keys::kOptionsPage &&
1445 *key != keys::kBackground) {
1674 if (source.HasKey(keys::kPublicKey)) {
1676 if (!source.GetString(keys::kPublicKey,
1706 if (!source.GetString(keys::kVersion, &version_str)) {
1719 if (!source.GetString(keys::kName, &localized_name)) {
1727 if (source.HasKey(keys::kDescription)) {
1728 if (!source.GetString(keys::kDescription,
1736 if (source.HasKey(keys::kHomepageURL)) {
1738 if (!source.GetString(keys::kHomepageURL, &tmp)) {
1752 if (source.HasKey(keys::kUpdateURL)) {
1754 if (!source.GetString(keys::kUpdateURL, &tmp)) {
1770 if (source.HasKey(keys::kMinimumChromeVersion)) {
1772 if (!source.GetString(keys::kMinimumChromeVersion,
1808 source.GetBoolean(keys::kConvertedFromUserScript,
1812 if (source.HasKey(keys::kIcons)) {
1814 if (!source.GetDictionary(keys::kIcons, &icons_value)) {
1845 if (source.HasKey(keys::kTheme)) {
1846 // Themes cannot contain extension keys.
1853 if (!source.GetDictionary(keys::kTheme, &theme_value)) {
1860 if (theme_value->GetDictionary(keys::kThemeImages, &images_value)) {
1874 if (theme_value->GetDictionary(keys::kThemeColors, &colors_value)) {
1902 if (theme_value->GetDictionary(keys::kThemeTints, &tints_value)) {
1922 if (theme_value->GetDictionary(keys::kThemeDisplayProperties,
1932 if (source.HasKey(keys::kPlugins)) {
1934 if (!source.GetList(keys::kPlugins, &list_value)) {
1950 if (!plugin_value->GetString(keys::kPluginsPath, &path_str)) {
1957 if (plugin_value->HasKey(keys::kPluginsPublic)) {
1958 if (!plugin_value->GetBoolean(keys::kPluginsPublic, &is_public)) {
1978 source.HasKey(keys::kNaClModules)) {
1980 if (!source.GetList(keys::kNaClModules, &list_value)) {
1996 if (!module_value->GetString(keys::kNaClModulesPath, &path_str)) {
2003 if (!module_value->GetString(keys::kNaClModulesMIMEType, &mime_type)) {
2020 source.HasKey(keys::kToolstrips)) {
2022 if (!source.GetList(keys::kToolstrips, &list_value)) {
2035 if (!toolstrip_value->GetString(keys::kToolstripPath,
2052 if (source.HasKey(keys::kContentScripts)) {
2054 if (!source.GetList(keys::kContentScripts, &list_value)) {
2082 if (source.HasKey(keys::kPageActions)) {
2084 if (!source.GetList(keys::kPageActions, &list_value)) {
2103 } else if (source.HasKey(keys::kPageAction)) {
2104 if (!source.GetDictionary(keys::kPageAction, &page_action_value)) {
2119 if (source.HasKey(keys::kBrowserAction)) {
2121 if (!source.GetDictionary(keys::kBrowserAction, &browser_action_value)) {
2133 if (source.HasKey(keys::kFileBrowserHandlers)) {
2135 if (!source.GetList(keys::kFileBrowserHandlers,
2149 !LoadExtent(manifest_value_.get(), keys::kWebURLs,
2162 if (source.HasKey(keys::kOptionsPage)) {
2164 if (!source.GetString(keys::kOptionsPage, &options_str)) {
2193 if (source.HasKey(keys::kPermissions)) {
2195 if (!source.GetList(keys::kPermissions, &permissions)) {
2289 if (source.HasKey(keys::kBackground)) {
2291 if (!source.GetString(keys::kBackground, &background_str)) {
2323 if (source.HasKey(keys::kDefaultLocale)) {
2324 if (!source.GetString(keys::kDefaultLocale, &default_locale_) ||
2332 if (source.HasKey(keys::kChromeURLOverrides)) {
2334 if (!source.GetDictionary(keys::kChromeURLOverrides, &overrides)) {
2369 if (source.HasKey(keys::kOmnibox)) {
2370 if (!source.GetString(keys::kOmniboxKeyword, &omnibox_keyword_) ||
2378 if (source.HasKey(keys::kDevToolsPage)) {
2380 if (!source.GetString(keys::kDevToolsPage, &devtools_str)) {
2392 if (source.HasKey(keys::kSidebar)) {
2394 if (!source.GetDictionary(keys::kSidebar, &sidebar_value)) {
2408 if (source.HasKey(keys::kTts)) {
2410 if (!source.GetDictionary(keys::kTts, &tts_dict)) {
2415 if (tts_dict->HasKey(keys::kTtsVoices)) {
2417 if (!tts_dict->GetList(keys::kTtsVoices, &tts_voices)) {
2430 if (one_tts_voice->HasKey(keys::kTtsVoicesVoiceName)) {
2432 keys::kTtsVoicesVoiceName, &voice_data.voice_name)) {
2437 if (one_tts_voice->HasKey(keys::kTtsVoicesLocale)) {
2439 keys::kTtsVoicesLocale, &voice_data.locale) ||
2445 if (one_tts_voice->HasKey(keys::kTtsVoicesGender)) {
2447 keys::kTtsVoicesGender, &voice_data.gender) ||
2448 (voice_data.gender != keys::kTtsGenderMale &&
2449 voice_data.gender != keys::kTtsGenderFemale)) {
2463 if (source.HasKey(keys::kIncognito)) {
2465 if (!source.GetString(keys::kIncognito, &value)) {