| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 // This is the GTK implementation of the bookmark bubble, the dialog box | 5 // This is the GTK implementation of the bookmark bubble, the dialog box |
| 6 // presented to create or edit a bookmark. There can only ever be a single | 6 // presented to create or edit a bookmark. There can only ever be a single |
| 7 // bubble open, so the class presents only static methods, and handles the | 7 // bubble open, so the class presents only static methods, and handles the |
| 8 // singleton behavior for you. It also handles the object and widget | 8 // singleton behavior for you. It also handles the object and widget |
| 9 // lifetimes, destroying everything and possibly committing any changes when | 9 // lifetimes, destroying everything and possibly committing any changes when |
| 10 // the bubble is closed. | 10 // the bubble is closed. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // Provides colors and stuff. | 119 // Provides colors and stuff. |
| 120 GtkThemeProvider* theme_provider_; | 120 GtkThemeProvider* theme_provider_; |
| 121 | 121 |
| 122 // The toplevel window our dialogs should be transient for. | 122 // The toplevel window our dialogs should be transient for. |
| 123 GtkWindow* transient_toplevel_; | 123 GtkWindow* transient_toplevel_; |
| 124 | 124 |
| 125 // We let the InfoBubble own our content, and then we delete ourself | 125 // We let the InfoBubble own our content, and then we delete ourself |
| 126 // when the widget is destroyed (when the InfoBubble is destroyed). | 126 // when the widget is destroyed (when the InfoBubble is destroyed). |
| 127 GtkWidget* content_; | 127 GtkWidget* content_; |
| 128 | 128 |
| 129 // The button that removes the bookmark. |
| 130 GtkWidget* remove_button_; |
| 131 |
| 129 // The various labels in the interface. We keep track of them for theme | 132 // The various labels in the interface. We keep track of them for theme |
| 130 // changes. | 133 // changes. |
| 131 std::vector<GtkWidget*> labels_; | 134 std::vector<GtkWidget*> labels_; |
| 132 | 135 |
| 133 // The GtkEntry for editing the bookmark name / title. | 136 // The GtkEntry for editing the bookmark name / title. |
| 134 GtkWidget* name_entry_; | 137 GtkWidget* name_entry_; |
| 135 | 138 |
| 136 // The combo box for selecting the bookmark folder. | 139 // The combo box for selecting the bookmark folder. |
| 137 GtkWidget* folder_combo_; | 140 GtkWidget* folder_combo_; |
| 138 | 141 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 150 // When closing the window, whether we should update or remove the bookmark. | 153 // When closing the window, whether we should update or remove the bookmark. |
| 151 bool apply_edits_; | 154 bool apply_edits_; |
| 152 bool remove_bookmark_; | 155 bool remove_bookmark_; |
| 153 | 156 |
| 154 NotificationRegistrar registrar_; | 157 NotificationRegistrar registrar_; |
| 155 | 158 |
| 156 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); | 159 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); |
| 157 }; | 160 }; |
| 158 | 161 |
| 159 #endif // CHROME_BROWSER_GTK_BOOKMARK_BUBBLE_GTK_H_ | 162 #endif // CHROME_BROWSER_GTK_BOOKMARK_BUBBLE_GTK_H_ |
| OLD | NEW |