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 // 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 |
12 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ | 12 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ |
13 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ | 13 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ |
14 #pragma once | 14 #pragma once |
15 | 15 |
16 #include <string> | 16 #include <string> |
17 #include <vector> | 17 #include <vector> |
18 | 18 |
19 #include "base/basictypes.h" | 19 #include "base/basictypes.h" |
20 #include "base/compiler_specific.h" | 20 #include "base/compiler_specific.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/memory/weak_ptr.h" | 22 #include "base/memory/weak_ptr.h" |
23 #include "base/task.h" | |
24 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" | 23 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
25 #include "content/public/browser/notification_observer.h" | 24 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_registrar.h" | 25 #include "content/public/browser/notification_registrar.h" |
27 #include "googleurl/src/gurl.h" | 26 #include "googleurl/src/gurl.h" |
28 #include "ui/base/gtk/gtk_signal.h" | 27 #include "ui/base/gtk/gtk_signal.h" |
29 | 28 |
30 class BookmarkModel; | 29 class BookmarkModel; |
31 class Profile; | 30 class Profile; |
32 class RecentlyUsedFoldersComboModel; | 31 class RecentlyUsedFoldersComboModel; |
33 | 32 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // 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. |
124 bool apply_edits_; | 123 bool apply_edits_; |
125 bool remove_bookmark_; | 124 bool remove_bookmark_; |
126 | 125 |
127 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
128 | 127 |
129 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); | 128 DISALLOW_COPY_AND_ASSIGN(BookmarkBubbleGtk); |
130 }; | 129 }; |
131 | 130 |
132 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ | 131 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BUBBLE_GTK_H_ |
OLD | NEW |