Lines Matching refs:tab_id

49   // Use this ID to indicate the default state for properties that take a tab_id
84 void SetPopupUrl(int tab_id, const GURL& url);
87 bool HasPopup(int tab_id) const;
90 GURL GetPopupUrl(int tab_id) const;
93 void SetTitle(int tab_id, const std::string& title) {
94 SetValue(&title_, tab_id, title);
97 // If tab |tab_id| has a set title, return it. Otherwise, return
99 std::string GetTitle(int tab_id) const { return GetValue(&title_, tab_id); }
108 void SetIcon(int tab_id, const gfx::Image& image);
116 gfx::ImageSkia GetExplicitlySetIcon(int tab_id) const;
121 void DeclarativeSetIcon(int tab_id, int priority, const gfx::Image& icon);
122 void UndoDeclarativeSetIcon(int tab_id, int priority, const gfx::Image& icon);
135 void SetBadgeText(int tab_id, const std::string& text) {
136 SetValue(&badge_text_, tab_id, text);
139 std::string GetBadgeText(int tab_id) const {
140 return GetValue(&badge_text_, tab_id);
144 void SetBadgeTextColor(int tab_id, SkColor text_color) {
145 SetValue(&badge_text_color_, tab_id, text_color);
149 SkColor GetBadgeTextColor(int tab_id) const {
150 return GetValue(&badge_text_color_, tab_id);
154 void SetBadgeBackgroundColor(int tab_id, SkColor color) {
155 SetValue(&badge_background_color_, tab_id, color);
159 SkColor GetBadgeBackgroundColor(int tab_id) const {
160 return GetValue(&badge_background_color_, tab_id);
165 bool SetIsVisible(int tab_id, bool value);
168 void DeclarativeShow(int tab_id);
169 void UndoDeclarativeShow(int tab_id);
170 const gfx::ImageSkia GetDeclarativeIcon(int tab_id) const;
174 // Gets the visibility of |tab_id|. Returns the first of: a specific
180 bool GetIsVisible(int tab_id) const {
181 if (const bool* tab_is_visible = FindOrNull(&is_visible_, tab_id))
184 if (ContainsKey(declarative_show_count_, tab_id))
195 void ClearAllValuesForTab(int tab_id);
198 void PaintBadge(gfx::Canvas* canvas, const gfx::Rect& bounds, int tab_id);
202 int tab_id,
206 // |tab_id| for each property.
207 bool HasPopupUrl(int tab_id) const;
208 bool HasTitle(int tab_id) const;
209 bool HasBadgeText(int tab_id) const;
210 bool HasBadgeBackgroundColor(int tab_id) const;
211 bool HasBadgeTextColor(int tab_id) const;
212 bool HasIsVisible(int tab_id) const;
213 bool HasIcon(int tab_id) const;
216 // Returns width of the current icon for tab_id.
219 int GetIconWidth(int tab_id) const;
229 void SetValue(std::map<int, T>* map, int tab_id, const T& val) {
230 (*map)[tab_id] = val;
244 T GetValue(const std::map<int, T>* map, int tab_id) const {
245 if (const T* tab_value = FindOrNull(map, tab_id)) {
261 // kDefaultTabId), or tab-specific state (stored with the tab_id as the key).
277 // Maps tab_id to the number of active (applied-but-not-reverted)
281 // declarative_icon_[tab_id][declarative_rule_priority] is a vector of icon