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

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

Issue 1087713002: [Reland] [Extensions] Make extension message bubble factory platform-abstract (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finnur's Created 5 years, 8 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 3a6798fc29a10a08f7d57583cb485b201263c7ec..349736cbde1ecfea49466fe991ad0943f3650d48 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_bar.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_bar.h
@@ -7,6 +7,7 @@
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
+#include "base/memory/weak_ptr.h"
#include "base/scoped_observer.h"
#include "chrome/browser/extensions/extension_toolbar_model.h"
#include "chrome/browser/ui/toolbar/toolbar_actions_bar_bubble_delegate.h"
@@ -198,6 +199,9 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer,
// Sets |overflowed_action_wants_to_run_| to the proper value.
void SetOverflowedActionWantsToRun();
+ // Shows an extension message bubble, if any should be shown.
+ void MaybeShowExtensionBubble();
+
bool in_overflow_mode() const { return main_bar_ != nullptr; }
// The delegate for this object (in a real build, this is the view).
@@ -247,6 +251,12 @@ class ToolbarActionsBar : public extensions::ExtensionToolbarModel::Observer,
// True if an action in the overflow menu wants to run.
bool overflowed_action_wants_to_run_;
+ // True if we have checked to see if there is an extension bubble that should
+ // be displayed, and, if there is, shown that bubble.
+ bool checked_extension_bubble_;
+
+ base::WeakPtrFactory<ToolbarActionsBar> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBar);
};
« no previous file with comments | « chrome/browser/ui/extensions/extension_message_bubble_factory.cc ('k') | chrome/browser/ui/toolbar/toolbar_actions_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698