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_BOOKMARKS_BOOKMARK_BAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 const BookmarkNode* node) OVERRIDE; | 226 const BookmarkNode* node) OVERRIDE; |
227 virtual void BookmarkNodeChanged(BookmarkModel* model, | 227 virtual void BookmarkNodeChanged(BookmarkModel* model, |
228 const BookmarkNode* node) OVERRIDE; | 228 const BookmarkNode* node) OVERRIDE; |
229 // Invoked when a favicon has finished loading. | 229 // Invoked when a favicon has finished loading. |
230 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, | 230 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, |
231 const BookmarkNode* node) OVERRIDE; | 231 const BookmarkNode* node) OVERRIDE; |
232 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, | 232 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, |
233 const BookmarkNode* node) OVERRIDE; | 233 const BookmarkNode* node) OVERRIDE; |
234 | 234 |
235 // Overridden from NotificationObserver: | 235 // Overridden from NotificationObserver: |
236 virtual void Observe(NotificationType type, | 236 virtual void Observe(int type, |
237 const NotificationSource& source, | 237 const NotificationSource& source, |
238 const NotificationDetails& details); | 238 const NotificationDetails& details); |
239 | 239 |
240 GtkWidget* CreateBookmarkButton(const BookmarkNode* node); | 240 GtkWidget* CreateBookmarkButton(const BookmarkNode* node); |
241 GtkToolItem* CreateBookmarkToolItem(const BookmarkNode* node); | 241 GtkToolItem* CreateBookmarkToolItem(const BookmarkNode* node); |
242 | 242 |
243 void ConnectFolderButtonEvents(GtkWidget* widget, bool is_tool_item); | 243 void ConnectFolderButtonEvents(GtkWidget* widget, bool is_tool_item); |
244 | 244 |
245 // Finds the BookmarkNode from the model associated with |button|. | 245 // Finds the BookmarkNode from the model associated with |button|. |
246 const BookmarkNode* GetNodeForToolButton(GtkWidget* button); | 246 const BookmarkNode* GetNodeForToolButton(GtkWidget* button); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 BooleanPrefMember edit_bookmarks_enabled_; | 411 BooleanPrefMember edit_bookmarks_enabled_; |
412 | 412 |
413 ScopedRunnableMethodFactory<BookmarkBarGtk> method_factory_; | 413 ScopedRunnableMethodFactory<BookmarkBarGtk> method_factory_; |
414 | 414 |
415 BookmarkBar::State bookmark_bar_state_; | 415 BookmarkBar::State bookmark_bar_state_; |
416 | 416 |
417 DISALLOW_COPY_AND_ASSIGN(BookmarkBarGtk); | 417 DISALLOW_COPY_AND_ASSIGN(BookmarkBarGtk); |
418 }; | 418 }; |
419 | 419 |
420 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_GTK_H_ | 420 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_BAR_GTK_H_ |
OLD | NEW |