OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 std::string custom_link; | 90 std::string custom_link; |
91 bool custom_link_enabled; | 91 bool custom_link_enabled; |
92 std::string manage_link; | 92 std::string manage_link; |
93 MediaMenuMap media_menus; | 93 MediaMenuMap media_menus; |
94 std::string learn_more_link; | 94 std::string learn_more_link; |
95 | 95 |
96 private: | 96 private: |
97 DISALLOW_COPY_AND_ASSIGN(BubbleContent); | 97 DISALLOW_COPY_AND_ASSIGN(BubbleContent); |
98 }; | 98 }; |
99 | 99 |
100 // Returns a vector of the Supported bubble types. | |
101 static const std::set<ContentSettingsType>& GetSupportedBubbleTypes(); | |
102 | |
103 // Returns true if the given ContentSettingsType has a bubble. | |
104 static bool HasBubble(ContentSettingsType type); | |
tapted
2015/09/03 06:36:38
HasBubbleForType?
(HasBubble sounds too much like
raymes
2015/09/07 04:29:27
I removed this and changed the callers to just che
| |
105 | |
100 static ContentSettingBubbleModel* CreateContentSettingBubbleModel( | 106 static ContentSettingBubbleModel* CreateContentSettingBubbleModel( |
101 Delegate* delegate, | 107 Delegate* delegate, |
102 content::WebContents* web_contents, | 108 content::WebContents* web_contents, |
103 Profile* profile, | 109 Profile* profile, |
104 ContentSettingsType content_type); | 110 ContentSettingsType content_type); |
105 | 111 |
106 ~ContentSettingBubbleModel() override; | 112 ~ContentSettingBubbleModel() override; |
107 | 113 |
108 ContentSettingsType content_type() const { return content_type_; } | 114 ContentSettingsType content_type() const { return content_type_; } |
109 | 115 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
224 void IgnoreProtocolHandler(); | 230 void IgnoreProtocolHandler(); |
225 void ClearOrSetPreviousHandler(); | 231 void ClearOrSetPreviousHandler(); |
226 | 232 |
227 int selected_item_; | 233 int selected_item_; |
228 ProtocolHandlerRegistry* registry_; | 234 ProtocolHandlerRegistry* registry_; |
229 ProtocolHandler pending_handler_; | 235 ProtocolHandler pending_handler_; |
230 ProtocolHandler previous_handler_; | 236 ProtocolHandler previous_handler_; |
231 }; | 237 }; |
232 | 238 |
233 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 239 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
OLD | NEW |