Lines Matching full:keys
47 namespace keys = extension_tabs_module_constants;
92 return is_loading ? keys::kStatusValueLoading : keys::kStatusValueComplete;
125 result->SetInteger(keys::kIdKey, ExtensionTabUtil::GetTabId(contents));
126 result->SetInteger(keys::kIndexKey, tab_index);
127 result->SetInteger(keys::kWindowIdKey,
129 result->SetString(keys::kUrlKey, contents->GetURL().spec());
130 result->SetString(keys::kStatusKey, GetTabStatusText(contents->is_loading()));
131 result->SetBoolean(keys::kSelectedKey,
133 result->SetBoolean(keys::kPinnedKey,
135 result->SetString(keys::kTitleKey, contents->GetTitle());
136 result->SetBoolean(keys::kIncognitoKey,
143 result->SetString(keys::kFaviconUrlKey, entry->favicon().url().spec());
157 result->SetInteger(keys::kIdKey, ExtensionTabUtil::GetWindowId(browser));
158 result->SetBoolean(keys::kIncognitoKey,
160 result->SetBoolean(keys::kFocusedKey, browser->window()->IsActive());
167 result->SetInteger(keys::kLeftKey, bounds.x());
168 result->SetInteger(keys::kTopKey, bounds.y());
169 result->SetInteger(keys::kWidthKey, bounds.width());
170 result->SetInteger(keys::kHeightKey, bounds.height());
171 result->SetString(keys::kWindowTypeKey, GetWindowTypeText(browser->type()));
174 result->Set(keys::kTabsKey, ExtensionTabUtil::CreateTabList(browser));
263 keys::kWindowNotFoundError, base::IntToString(window_id));
274 error_ = keys::kNoCurrentWindowError;
285 error_ = keys::kNoLastFocusedWindowError;
298 if (args->HasKey(keys::kPopulateKey)) {
299 EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kPopulateKey,
332 if (args->HasKey(keys::kUrlKey)) {
335 args->Get(keys::kUrlKey, &url_value);
357 keys::kInvalidUrlError, *i);
370 error_ = keys::kNoCrashBrowserError;
377 if (args->HasKey(keys::kTabIdKey)) {
378 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kTabIdKey, &tab_id));
391 keys::kTabNotFoundError, base::IntToString(tab_id));
424 if (args->HasKey(keys::kLeftKey)) {
425 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kLeftKey,
431 if (args->HasKey(keys::kTopKey)) {
432 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kTopKey,
438 if (args->HasKey(keys::kWidthKey)) {
439 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kWidthKey,
445 if (args->HasKey(keys::kHeightKey)) {
446 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kHeightKey,
453 if (args->HasKey(keys::kIncognitoKey)) {
454 EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kIncognitoKey,
457 error_ = keys::kIncognitoModeIsDisabled;
465 if (args->HasKey(keys::kFocusedKey))
466 EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kFocusedKey,
470 if (args->HasKey(keys::kWindowTypeKey)) {
471 EXTENSION_FUNCTION_VALIDATE(args->GetString(keys::kWindowTypeKey,
473 if (type_str == keys::kWindowTypeValueNormal) {
475 } else if (type_str == keys::kWindowTypeValuePopup) {
477 } else if (type_str == keys::kWindowTypeValuePanel) {
532 keys::kWindowNotFoundError, base::IntToString(window_id));
540 if (update_props->HasKey(keys::kLeftKey)) {
542 keys::kLeftKey,
548 if (update_props->HasKey(keys::kTopKey)) {
550 keys::kTopKey,
556 if (update_props->HasKey(keys::kWidthKey)) {
558 keys::kWidthKey,
564 if (update_props->HasKey(keys::kHeightKey)) {
566 keys::kHeightKey,
575 if (update_props->HasKey(keys::kFocusedKey)) {
577 keys::kFocusedKey, &selected_val));
601 error_ = keys::kTabStripNotEditableError;
624 error_ = keys::kNoCurrentWindowError;
632 error_ = keys::kNoSelectedTabError;
652 error_ = keys::kNoCurrentWindowError;
669 if (args->HasKey(keys::kWindowIdKey)) {
671 keys::kWindowIdKey, &window_id));
677 error_ = keys::kNoCurrentWindowError;
688 if (args->HasKey(keys::kUrlKey)) {
689 EXTENSION_FUNCTION_VALIDATE(args->GetString(keys::kUrlKey,
693 error_ = ExtensionErrorUtils::FormatErrorMessage(keys::kInvalidUrlError,
702 error_ = keys::kNoCrashBrowserError;
709 if (args->HasKey(keys::kSelectedKey))
710 EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kSelectedKey,
716 if (args->HasKey(keys::kPinnedKey))
717 EXTENSION_FUNCTION_VALIDATE(args->GetBoolean(keys::kPinnedKey, &pinned));
736 if (args->HasKey(keys::kIndexKey))
737 EXTENSION_FUNCTION_VALIDATE(args->GetInteger(keys::kIndexKey, &index));
821 if (update_props->HasKey(keys::kUrlKey)) {
823 keys::kUrlKey, &url_string));
827 error_ = ExtensionErrorUtils::FormatErrorMessage(keys::kInvalidUrlError,
835 error_ = keys::kNoCrashBrowserError;
878 if (update_props->HasKey(keys::kSelectedKey)) {
880 keys::kSelectedKey,
892 if (update_props->HasKey(keys::kPinnedKey)) {
893 EXTENSION_FUNCTION_VALIDATE(update_props->GetBoolean(keys::kPinnedKey,
953 keys::kIndexKey, &new_index));
967 error_ = keys::kTabStripNotEditableError;
971 if (update_props->HasKey(keys::kWindowIdKey)) {
975 keys::kWindowIdKey, &window_id));
982 error_ = keys::kTabStripNotEditableError;
987 error_ = keys::kCanOnlyMoveTabsWithinNormalWindowsError;
992 error_ = keys::kCanOnlyMoveTabsWithinSameProfileError;
1003 keys::kTabNotFoundError, base::IntToString(tab_id));
1052 error_ = keys::kTabStripNotEditableError;
1079 error_ = keys::kNoCurrentWindowError;
1090 if (options->HasKey(keys::kFormatKey)) {
1093 options->GetString(keys::kFormatKey, &format));
1095 if (format == keys::kFormatValueJpeg) {
1097 } else if (format == keys::kFormatValuePng) {
1105 if (options->HasKey(keys::kQualityKey)) {
1107 options->GetInteger(keys::kQualityKey, &image_quality_));
1113 error_ = keys::kInternalVisibleTabCaptureError;
1172 error_ = keys::kInternalVisibleTabCaptureError;
1200 mime_type = keys::kMimeTypeJpeg;
1207 mime_type = keys::kMimeTypePng;
1215 keys::kInternalVisibleTabCaptureError, "");
1260 error_ = keys::kCannotDetermineLanguageOfUnloadedTab;
1327 keys::kWindowNotFoundError, base::IntToString(window_id));
1345 keys::kTabNotFoundError, base::IntToString(tab_id));
1354 return keys::kWindowTypeValuePanel;
1357 return keys::kWindowTypeValuePopup;
1360 return keys::kWindowTypeValueApp;
1363 return keys::kWindowTypeValueNormal;