OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
6 #define CHROME_BROWSER_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 const NotificationDetails& details); | 49 const NotificationDetails& details); |
50 | 50 |
51 // Builds the info bubble and all the widgets that it displays. | 51 // Builds the info bubble and all the widgets that it displays. |
52 void BuildBubble(); | 52 void BuildBubble(); |
53 | 53 |
54 // Widget callback methods. | 54 // Widget callback methods. |
55 CHROMEGTK_CALLBACK_1(ContentSettingBubbleGtk, void, OnPopupIconButtonPress, | 55 CHROMEGTK_CALLBACK_1(ContentSettingBubbleGtk, void, OnPopupIconButtonPress, |
56 GdkEventButton*); | 56 GdkEventButton*); |
57 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnPopupLinkClicked); | 57 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnPopupLinkClicked); |
58 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnRadioToggled); | 58 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnRadioToggled); |
| 59 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnCustomLinkClicked); |
| 60 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnManageLinkClicked); |
59 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnCloseButtonClicked); | 61 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnCloseButtonClicked); |
60 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnManageLinkClicked); | |
61 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnClearLinkClicked); | |
62 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnInfoLinkClicked); | |
63 CHROMEGTK_CALLBACK_0(ContentSettingBubbleGtk, void, OnLoadPluginsLinkClicked); | |
64 | 62 |
65 // We position the bubble near this widget. | 63 // We position the bubble near this widget. |
66 GtkWidget* anchor_; | 64 GtkWidget* anchor_; |
67 | 65 |
68 // The active profile. | 66 // The active profile. |
69 Profile* profile_; | 67 Profile* profile_; |
70 | 68 |
71 // The active tab contents. | 69 // The active tab contents. |
72 TabContents* tab_contents_; | 70 TabContents* tab_contents_; |
73 | 71 |
74 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. | 72 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. |
75 NotificationRegistrar registrar_; | 73 NotificationRegistrar registrar_; |
76 | 74 |
77 // Pass on delegate messages to this. | 75 // Pass on delegate messages to this. |
78 InfoBubbleGtkDelegate* delegate_; | 76 InfoBubbleGtkDelegate* delegate_; |
79 | 77 |
80 // Provides data for this bubble. | 78 // Provides data for this bubble. |
81 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; | 79 scoped_ptr<ContentSettingBubbleModel> content_setting_bubble_model_; |
82 | 80 |
83 // The info bubble. | 81 // The info bubble. |
84 InfoBubbleGtk* info_bubble_; | 82 InfoBubbleGtk* info_bubble_; |
85 | 83 |
86 // Stored controls so we can figure out what was clicked. | 84 // Stored controls so we can figure out what was clicked. |
87 PopupMap popup_links_; | 85 PopupMap popup_links_; |
88 PopupMap popup_icons_; | 86 PopupMap popup_icons_; |
89 | 87 |
90 typedef std::vector<GtkWidget*> RadioGroupGtk; | 88 typedef std::vector<GtkWidget*> RadioGroupGtk; |
91 RadioGroupGtk radio_group_gtk_; | 89 RadioGroupGtk radio_group_gtk_; |
92 | |
93 GtkWidget* load_plugins_link_; | |
94 }; | 90 }; |
95 | 91 |
96 #endif // CHROME_BROWSER_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 92 #endif // CHROME_BROWSER_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
OLD | NEW |