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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.h

Issue 1025503002: Use same base class for popup and plugin blocking UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb comments 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const std::string& label); 61 const std::string& label);
62 62
63 protected: 63 protected:
64 // views::BubbleDelegateView: 64 // views::BubbleDelegateView:
65 void Init() override; 65 void Init() override;
66 66
67 private: 67 private:
68 class Favicon; 68 class Favicon;
69 struct MediaMenuParts; 69 struct MediaMenuParts;
70 70
71 typedef std::map<views::Link*, int> PopupLinks; 71 typedef std::map<views::Link*, int> ListItemLinks;
72 typedef std::map<views::MenuButton*, MediaMenuParts*> MediaMenuPartsMap; 72 typedef std::map<views::MenuButton*, MediaMenuParts*> MediaMenuPartsMap;
73 73
74 // content::WebContentsObserver: 74 // content::WebContentsObserver:
75 void DidNavigateMainFrame( 75 void DidNavigateMainFrame(
76 const content::LoadCommittedDetails& details, 76 const content::LoadCommittedDetails& details,
77 const content::FrameNavigateParams& params) override; 77 const content::FrameNavigateParams& params) override;
78 78
79 // views::View: 79 // views::View:
80 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 80 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
81 81
82 // views::ButtonListener: 82 // views::ButtonListener:
83 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 83 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
84 84
85 // views::LinkListener: 85 // views::LinkListener:
86 void LinkClicked(views::Link* source, int event_flags) override; 86 void LinkClicked(views::Link* source, int event_flags) override;
87 87
88 // views::MenuButtonListener: 88 // views::MenuButtonListener:
89 void OnMenuButtonClicked(views::View* source, 89 void OnMenuButtonClicked(views::View* source,
90 const gfx::Point& point) override; 90 const gfx::Point& point) override;
91 91
92 // Helper to get the preferred width of the media menu. 92 // Helper to get the preferred width of the media menu.
93 void UpdateMenuButtonSizes(const ui::NativeTheme* theme); 93 void UpdateMenuButtonSizes(const ui::NativeTheme* theme);
94 94
95 // Provides data for this bubble. 95 // Provides data for this bubble.
96 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; 96 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_;
97 97
98 // Some of our controls, so we can tell what's been clicked when we get a 98 // Some of our controls, so we can tell what's been clicked when we get a
99 // message. 99 // message.
100 PopupLinks popup_links_; 100 ListItemLinks list_item_links_;
101 typedef std::vector<views::RadioButton*> RadioGroup; 101 typedef std::vector<views::RadioButton*> RadioGroup;
102 RadioGroup radio_group_; 102 RadioGroup radio_group_;
103 views::Link* custom_link_; 103 views::Link* custom_link_;
104 views::Link* manage_link_; 104 views::Link* manage_link_;
105 views::Link* learn_more_link_; 105 views::Link* learn_more_link_;
106 views::LabelButton* close_button_; 106 views::LabelButton* close_button_;
107 scoped_ptr<views::MenuRunner> menu_runner_; 107 scoped_ptr<views::MenuRunner> menu_runner_;
108 MediaMenuPartsMap media_menus_; 108 MediaMenuPartsMap media_menus_;
109 109
110 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); 110 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents);
111 }; 111 };
112 112
113 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 113 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698