OLD | NEW |
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 struct MediaMenuParts; | 69 struct MediaMenuParts; |
70 | 70 |
71 typedef std::map<views::Link*, int> ListItemLinks; | 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: | |
80 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | |
81 | |
82 // views::ButtonListener: | 79 // views::ButtonListener: |
83 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 80 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
84 | 81 |
85 // views::LinkListener: | 82 // views::LinkListener: |
86 void LinkClicked(views::Link* source, int event_flags) override; | 83 void LinkClicked(views::Link* source, int event_flags) override; |
87 | 84 |
88 // views::MenuButtonListener: | 85 // views::MenuButtonListener: |
89 void OnMenuButtonClicked(views::View* source, | 86 void OnMenuButtonClicked(views::View* source, |
90 const gfx::Point& point) override; | 87 const gfx::Point& point) override; |
91 | 88 |
92 // Helper to get the preferred width of the media menu. | 89 // Helper to get the preferred width of the media menu. |
93 void UpdateMenuButtonSizes(const ui::NativeTheme* theme); | 90 void UpdateMenuButtonSizes(); |
94 | 91 |
95 // Provides data for this bubble. | 92 // Provides data for this bubble. |
96 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; | 93 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; |
97 | 94 |
98 // Some of our controls, so we can tell what's been clicked when we get a | 95 // Some of our controls, so we can tell what's been clicked when we get a |
99 // message. | 96 // message. |
100 ListItemLinks list_item_links_; | 97 ListItemLinks list_item_links_; |
101 typedef std::vector<views::RadioButton*> RadioGroup; | 98 typedef std::vector<views::RadioButton*> RadioGroup; |
102 RadioGroup radio_group_; | 99 RadioGroup radio_group_; |
103 views::Link* custom_link_; | 100 views::Link* custom_link_; |
104 views::Link* manage_link_; | 101 views::Link* manage_link_; |
105 views::Link* learn_more_link_; | 102 views::Link* learn_more_link_; |
106 views::LabelButton* close_button_; | 103 views::LabelButton* close_button_; |
107 scoped_ptr<views::MenuRunner> menu_runner_; | 104 scoped_ptr<views::MenuRunner> menu_runner_; |
108 MediaMenuPartsMap media_menus_; | 105 MediaMenuPartsMap media_menus_; |
109 | 106 |
110 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); |
111 }; | 108 }; |
112 | 109 |
113 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ | 110 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ |
OLD | NEW |