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

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

Issue 387313005: views: Make the menu size the same as the menubutton size in the media bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup Created 6 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/content_setting_bubble_contents.h
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.h b/chrome/browser/ui/views/content_setting_bubble_contents.h
index e39156844c3937848d85226f7e4ff9d6ba698064..94ed3179797065680313361c51a892c845c26076 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.h
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.h
@@ -76,6 +76,9 @@ class ContentSettingBubbleContents : public content::WebContentsObserver,
const content::LoadCommittedDetails& details,
const content::FrameNavigateParams& params) OVERRIDE;
+ // views::View:
+ virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;
+
// views::ButtonListener:
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
@@ -88,8 +91,7 @@ class ContentSettingBubbleContents : public content::WebContentsObserver,
const gfx::Point& point) OVERRIDE;
// Helper to get the preferred width of the media menu.
- int GetPreferredMediaMenuWidth(views::MenuButton* button,
- ui::SimpleMenuModel* menu_model);
+ void UpdateMenuButtonSizes(const ui::NativeTheme* theme);
// Provides data for this bubble.
scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_;

Powered by Google App Engine
This is Rietveld 408576698