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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_bar.h

Issue 1246643004: [Extensions UI] Highlight toolbar extensions when the redesign bubble is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/browser/ui/toolbar/toolbar_actions_bar.h
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_bar.h b/chrome/browser/ui/toolbar/toolbar_actions_bar.h
index 8bea70d04804b35c48d152e4fe808f94348222ca..61b59cb7a44eb793d5b27e6c3a16e27797a881b8 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.h
@@ -67,6 +67,12 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer {
DRAG_TO_MAIN,
};
+ enum HighlightType {
+ HIGHLIGHT_NONE,
+ HIGHLIGHT_INFO,
+ HIGHLIGHT_WARNING,
+ };
+
ToolbarActionsBar(ToolbarActionsBarDelegate* delegate,
Browser* browser,
ToolbarActionsBar* main_bar);
@@ -165,6 +171,10 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer {
return suppress_animation_ || disable_animations_for_testing_;
}
bool is_highlighting() const { return model_ && model_->is_highlighting(); }
+ extensions::ExtensionToolbarModel::HighlightType highlight_type() const {
+ return model_ ? model_->highlight_type()
+ : extensions::ExtensionToolbarModel::HIGHLIGHT_NONE;
+ }
const PlatformSettings& platform_settings() const {
return platform_settings_;
}

Powered by Google App Engine
This is Rietveld 408576698