Lines Matching refs:tab_id
29 // Use this ID to indicate the default state for properties that take a tab_id
51 void SetPopupUrl(int tab_id, const GURL& url);
54 bool HasPopup(int tab_id);
57 GURL GetPopupUrl(int tab_id);
60 void SetTitle(int tab_id, const std::string& title) {
61 SetValue(&title_, tab_id, title);
64 // If tab |tab_id| has a set title, return it. Otherwise, return
66 std::string GetTitle(int tab_id) { return GetValue(&title_, tab_id); }
76 void SetIcon(int tab_id, const SkBitmap& bitmap);
79 SkBitmap GetIcon(int tab_id);
83 void SetIconIndex(int tab_id, int index);
87 int GetIconIndex(int tab_id) {
88 return GetValue(&icon_index_, tab_id);
101 void SetBadgeText(int tab_id, const std::string& text) {
102 SetValue(&badge_text_, tab_id, text);
105 std::string GetBadgeText(int tab_id) {
106 return GetValue(&badge_text_, tab_id);
110 void SetBadgeTextColor(int tab_id, const SkColor& text_color) {
111 SetValue(&badge_text_color_, tab_id, text_color);
115 SkColor GetBadgeTextColor(int tab_id) {
116 return GetValue(&badge_text_color_, tab_id);
120 void SetBadgeBackgroundColor(int tab_id, const SkColor& color) {
121 SetValue(&badge_background_color_, tab_id, color);
125 SkColor GetBadgeBackgroundColor(int tab_id) {
126 return GetValue(&badge_background_color_, tab_id);
130 void SetIsVisible(int tab_id, bool value) {
131 SetValue(&visible_, tab_id, value);
135 bool GetIsVisible(int tab_id) {
136 return GetValue(&visible_, tab_id);
140 void ClearAllValuesForTab(int tab_id);
143 void PaintBadge(gfx::Canvas* canvas, const gfx::Rect& bounds, int tab_id);
154 void SetValue(std::map<int, T>* map, int tab_id, const T& val) {
155 (*map)[tab_id] = val;
159 T GetValue(std::map<int, T>* map, int tab_id) {
160 typename std::map<int, T>::iterator iter = map->find(tab_id);
174 // kDefaultTabId), or tab-specific state (stored with the tab_id as the key).