| 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_GLOBAL_BOOKMARK_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_GLOBAL_BOOKMARK_MENU_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_BOOKMARK_MENU_H_ | 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_BOOKMARK_MENU_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 Browser* browser_; | 109 Browser* browser_; |
| 110 Profile* profile_; | 110 Profile* profile_; |
| 111 | 111 |
| 112 NotificationRegistrar registrar_; | 112 NotificationRegistrar registrar_; |
| 113 | 113 |
| 114 GdkPixbuf* default_favicon_; | 114 GdkPixbuf* default_favicon_; |
| 115 GdkPixbuf* default_folder_; | 115 GdkPixbuf* default_folder_; |
| 116 | 116 |
| 117 OwnedWidgetGtk bookmark_menu_; | 117 OwnedWidgetGtk bookmark_menu_; |
| 118 | 118 |
| 119 // We use this factory to create callback tasks for ThreadWatcher object. We | |
| 120 // use this during ping-pong messaging between WatchDog thread and watched | |
| 121 // thread. | |
| 122 ScopedRunnableMethodFactory<GlobalBookmarkMenu> method_factory_; | 119 ScopedRunnableMethodFactory<GlobalBookmarkMenu> method_factory_; |
| 123 | 120 |
| 124 // In order to appropriately update items in the bookmark menu, without | 121 // In order to appropriately update items in the bookmark menu, without |
| 125 // forcing a rebuild, map the model's nodes to menu items. | 122 // forcing a rebuild, map the model's nodes to menu items. |
| 126 std::map<const BookmarkNode*, GtkWidget*> bookmark_nodes_; | 123 std::map<const BookmarkNode*, GtkWidget*> bookmark_nodes_; |
| 127 }; | 124 }; |
| 128 | 125 |
| 129 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_BOOKMARK_MENU_H_ | 126 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_BOOKMARK_MENU_H_ |
| OLD | NEW |