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

Unified Diff: chrome/browser/ui/views/browser_action_view.h

Issue 10700007: Page actions behave as disableable browser actions when script badges are enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: estade + sky Created 8 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/views/browser_action_view.h
diff --git a/chrome/browser/ui/views/browser_action_view.h b/chrome/browser/ui/views/browser_action_view.h
index 2cb8a93a1e318bbe8e6c50aff2940f27b11f0aa6..8a9121893ccdbef62b4053d5037992b61cba03cd 100644
--- a/chrome/browser/ui/views/browser_action_view.h
+++ b/chrome/browser/ui/views/browser_action_view.h
@@ -88,6 +88,11 @@ class BrowserActionButton : public views::MenuButton,
void SetButtonPushed();
void SetButtonNotPushed();
+ // Whether the browser action is enabled on this tab. Note that we cannot use
+ // the built-in views enabled/SetEnabled because disabled views do not
+ // receive drag events.
+ bool IsEnabled(int tab_id) const;
+
protected:
// Overridden from views::View:
virtual void ViewHierarchyChanged(bool is_add,
« no previous file with comments | « chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc ('k') | chrome/browser/ui/views/browser_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698