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

Unified Diff: chrome/browser/extensions/extension_action.cc

Issue 11547033: Implement declarativeContent API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync past refactoring and fix build+tests Created 7 years, 11 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
« no previous file with comments | « chrome/browser/extensions/extension_action.h ('k') | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_action.cc
diff --git a/chrome/browser/extensions/extension_action.cc b/chrome/browser/extensions/extension_action.cc
index c193f4c98f329d9ffef7f1159add92cd51dae943..3e0aa9617039a02cf2485f66082c3cbc359a0959 100644
--- a/chrome/browser/extensions/extension_action.cc
+++ b/chrome/browser/extensions/extension_action.cc
@@ -272,6 +272,15 @@ bool ExtensionAction::SetAppearance(int tab_id, Appearance new_appearance) {
return true;
}
+void ExtensionAction::SetDeclarativeAppearance(int tab_id, Appearance value) {
+ DCHECK_NE(tab_id, kDefaultTabId);
+ SetValue(&declarative_appearance_, tab_id, value);
+}
+
+void ExtensionAction::ClearDeclarativeAppearance(int tab_id) {
+ declarative_appearance_.erase(tab_id);
+}
+
void ExtensionAction::ClearAllValuesForTab(int tab_id) {
popup_url_.erase(tab_id);
title_.erase(tab_id);
« no previous file with comments | « chrome/browser/extensions/extension_action.h ('k') | chrome/browser/extensions/tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698