Lines Matching full:tab_id
61 void ExtensionAction::SetPopupUrl(int tab_id, const GURL& url) {
67 SetValue(&popup_url_, tab_id, url);
70 bool ExtensionAction::HasPopup(int tab_id) {
71 return !GetPopupUrl(tab_id).is_empty();
74 GURL ExtensionAction::GetPopupUrl(int tab_id) {
75 return GetValue(&popup_url_, tab_id);
78 void ExtensionAction::SetIcon(int tab_id, const SkBitmap& bitmap) {
79 SetValue(&icon_, tab_id, bitmap);
82 SkBitmap ExtensionAction::GetIcon(int tab_id) {
83 return GetValue(&icon_, tab_id);
86 void ExtensionAction::SetIconIndex(int tab_id, int index) {
91 SetValue(&icon_index_, tab_id, index);
94 void ExtensionAction::ClearAllValuesForTab(int tab_id) {
95 title_.erase(tab_id);
96 icon_.erase(tab_id);
97 icon_index_.erase(tab_id);
98 badge_text_.erase(tab_id);
99 badge_text_color_.erase(tab_id);
100 badge_background_color_.erase(tab_id);
101 visible_.erase(tab_id);
102 popup_url_.erase(tab_id);
107 int tab_id) {
108 std::string text = GetBadgeText(tab_id);
112 SkColor text_color = GetBadgeTextColor(tab_id);
113 SkColor background_color = GetBadgeBackgroundColor(tab_id);
135 int icon_width = GetIcon(tab_id).width();
138 if (icon_width != 0 && (badge_width % 2 != GetIcon(tab_id).width() % 2))