Home | History | Annotate | Download | only in extensions

Lines Matching defs:tab_id

43   int tab_id;
44 EXTENSION_FUNCTION_VALIDATE(action->GetInteger(keys::kTabIdKey, &tab_id));
75 tab_id, profile(), include_incognito(), NULL, NULL, &contents, NULL);
78 kNoTabError, base::IntToString(tab_id));
90 page_action->SetIsVisible(tab_id, enable);
91 page_action->SetTitle(tab_id, title);
92 page_action->SetIconIndex(tab_id, icon_id);
98 bool PageActionFunction::InitCommon(int tab_id) {
109 tab_id, profile(), include_incognito(), NULL, NULL, &wrapper, NULL);
112 kNoTabError, base::IntToString(tab_id));
121 int tab_id;
122 EXTENSION_FUNCTION_VALIDATE(args_->GetInteger(0, &tab_id));
123 if (!InitCommon(tab_id))
126 page_action_->SetIsVisible(tab_id, visible);
151 int tab_id;
152 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
153 if (!InitCommon(tab_id))
166 page_action_->SetIcon(tab_id, *bitmap);
173 page_action_->SetIcon(tab_id, SkBitmap());
174 page_action_->SetIconIndex(tab_id, icon_index);
187 int tab_id;
188 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
189 if (!InitCommon(tab_id))
195 page_action_->SetTitle(tab_id, title);
204 int tab_id;
205 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
206 if (!InitCommon(tab_id))
218 page_action_->SetPopupUrl(tab_id, popup_url);
229 int tab_id;
230 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
231 if (!InitCommon(tab_id))
244 page_action_->SetBadgeBackgroundColor(tab_id, color);
255 int tab_id;
256 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
257 if (!InitCommon(tab_id))
270 page_action_->SetBadgeTextColor(tab_id, color);
281 int tab_id;
282 EXTENSION_FUNCTION_VALIDATE(args->GetInteger("tabId", &tab_id));
283 if (!InitCommon(tab_id))
289 page_action_->SetBadgeText(tab_id, text);