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

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

Issue 1004063003: [Extensions] Add logic for when to show the toolbar redesign bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 6047f2427caf169ab5f0d76a18685463d20dd32c..3a6798fc29a10a08f7d57583cb485b201263c7ec 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.h
@@ -17,6 +17,10 @@ namespace extensions {
class Extension;
}
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
class ToolbarActionsBarDelegate;
class ToolbarActionViewController;
@@ -73,6 +77,9 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer,
// Returns the height of a browser action icon.
static int IconHeight();
+ // Registers profile preferences.
+ static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+
// Returns the preferred size for the toolbar; this does *not* reflect any
// animations that may be running.
gfx::Size GetPreferredSize() const;
@@ -170,6 +177,7 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer,
Browser* GetBrowser() override;
// ToolbarActionsBarBubbleDelegate:
+ void OnToolbarActionsBarBubbleShown() override;
void OnToolbarActionsBarBubbleClosed(CloseAction action) override;
// Resizes the delegate (if necessary) to the preferred size using the given

Powered by Google App Engine
This is Rietveld 408576698