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_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Dismisses the bubble. | 37 // Dismisses the bubble. |
38 void Close(); | 38 void Close(); |
39 | 39 |
40 private: | 40 private: |
41 typedef std::map<GtkWidget*, int> PopupMap; | 41 typedef std::map<GtkWidget*, int> PopupMap; |
42 | 42 |
43 // BubbleDelegateGtk: | 43 // BubbleDelegateGtk: |
44 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; | 44 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
45 | 45 |
46 // NotificationObserver: | 46 // NotificationObserver: |
47 virtual void Observe(NotificationType type, | 47 virtual void Observe(int type, |
48 const NotificationSource& source, | 48 const NotificationSource& source, |
49 const NotificationDetails& details); | 49 const NotificationDetails& details); |
50 | 50 |
51 // Builds the bubble and all the widgets that it displays. | 51 // Builds the 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); |
(...skipping 25 matching lines...) Expand all Loading... |
83 | 83 |
84 // Stored controls so we can figure out what was clicked. | 84 // Stored controls so we can figure out what was clicked. |
85 PopupMap popup_links_; | 85 PopupMap popup_links_; |
86 PopupMap popup_icons_; | 86 PopupMap popup_icons_; |
87 | 87 |
88 typedef std::vector<GtkWidget*> RadioGroupGtk; | 88 typedef std::vector<GtkWidget*> RadioGroupGtk; |
89 RadioGroupGtk radio_group_gtk_; | 89 RadioGroupGtk radio_group_gtk_; |
90 }; | 90 }; |
91 | 91 |
92 #endif // CHROME_BROWSER_UI_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ | 92 #endif // CHROME_BROWSER_UI_GTK_CONTENT_SETTING_BUBBLE_GTK_H_ |
OLD | NEW |