Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5368)

Unified Diff: chrome/common/extensions/extension_action.h

Issue 10834279: Give request-to-act badges a grey background, and increase spacing to make it fit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final (??) Windows and GTK support Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/extension_action.h
diff --git a/chrome/common/extensions/extension_action.h b/chrome/common/extensions/extension_action.h
index d111678b525a41e04d0c2eed4cd7a02cae1a11fa..effe43f3e51e5493052c1506a33a39dc273a57f8 100644
--- a/chrome/common/extensions/extension_action.h
+++ b/chrome/common/extensions/extension_action.h
@@ -236,6 +236,11 @@ class ExtensionAction {
return GetValue(&appearance_, tab_id) != INVISIBLE;
}
+ // True if the tab's action wants the user's attention.
+ bool WantsAttention(int tab_id) const {
+ return GetValue(&appearance_, tab_id) == WANTS_ATTENTION;
+ }
+
// Remove all tab-specific state.
void ClearAllValuesForTab(int tab_id);

Powered by Google App Engine
This is Rietveld 408576698