| OLD | NEW |
| 1 // Copyright (c) 2011 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 // 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. |
| 11 | 11 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // The URL of the bookmark. | 81 // The URL of the bookmark. |
| 82 GURL url_; | 82 GURL url_; |
| 83 | 83 |
| 84 // Our current profile (used to access the bookmark system). | 84 // Our current profile (used to access the bookmark system). |
| 85 Profile* profile_; | 85 Profile* profile_; |
| 86 | 86 |
| 87 // This is owned by the Profile. | 87 // This is owned by the Profile. |
| 88 BookmarkModel* model_; | 88 BookmarkModel* model_; |
| 89 | 89 |
| 90 // Provides colors and stuff. | 90 // Provides colors and stuff. |
| 91 GtkThemeService* theme_service_; | 91 ThemeServiceGtk* theme_service_; |
| 92 | 92 |
| 93 // The widget relative to which we are positioned. | 93 // The widget relative to which we are positioned. |
| 94 GtkWidget* anchor_; | 94 GtkWidget* anchor_; |
| 95 | 95 |
| 96 // We let the BubbleGtk own our content, and then we delete ourself | 96 // We let the BubbleGtk own our content, and then we delete ourself |
| 97 // when the widget is destroyed (when the BubbleGtk is destroyed). | 97 // when the widget is destroyed (when the BubbleGtk is destroyed). |
| 98 GtkWidget* content_; | 98 GtkWidget* content_; |
| 99 | 99 |
| 100 // The button that removes the bookmark. | 100 // The button that removes the bookmark. |
| 101 GtkWidget* remove_button_; | 101 GtkWidget* remove_button_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 122 // When closing the window, whether we should update or remove the bookmark. | 122 // When closing the window, whether we should update or remove the bookmark. |
| 123 bool apply_edits_; | 123 bool apply_edits_; |
| 124 bool remove_bookmark_; | 124 bool remove_bookmark_; |
| 125 | 125 |
| 126 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); | 128 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ | 131 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ |
| OLD | NEW |