Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.h

Issue 791623004: bookmarks: Move BookmarkModelObserver into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + sync + cocoa fixes Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 // BookmarkBarView renders the BookmarkModel. Each starred entry on the 55 // BookmarkBarView renders the BookmarkModel. Each starred entry on the
56 // BookmarkBar is rendered as a MenuButton. An additional MenuButton aligned to 56 // BookmarkBar is rendered as a MenuButton. An additional MenuButton aligned to
57 // the right allows the user to quickly see recently starred entries. 57 // the right allows the user to quickly see recently starred entries.
58 // 58 //
59 // BookmarkBarView shows the bookmarks from a specific Profile. BookmarkBarView 59 // BookmarkBarView shows the bookmarks from a specific Profile. BookmarkBarView
60 // waits until the HistoryService for the profile has been loaded before 60 // waits until the HistoryService for the profile has been loaded before
61 // creating the BookmarkModel. 61 // creating the BookmarkModel.
62 class BookmarkBarView : public DetachableToolbarView, 62 class BookmarkBarView : public DetachableToolbarView,
63 public BookmarkModelObserver, 63 public bookmarks::BookmarkModelObserver,
64 public views::MenuButtonListener, 64 public views::MenuButtonListener,
65 public views::ButtonListener, 65 public views::ButtonListener,
66 public views::ContextMenuController, 66 public views::ContextMenuController,
67 public views::DragController, 67 public views::DragController,
68 public gfx::AnimationDelegate, 68 public gfx::AnimationDelegate,
69 public BookmarkMenuControllerObserver, 69 public BookmarkMenuControllerObserver,
70 public BookmarkBarInstructionsDelegate, 70 public BookmarkBarInstructionsDelegate,
71 public BookmarkBubbleViewObserver { 71 public BookmarkBubbleViewObserver {
72 public: 72 public:
73 // The internal view class name. 73 // The internal view class name.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 void BookmarkMenuControllerDeleted( 193 void BookmarkMenuControllerDeleted(
194 BookmarkMenuController* controller) override; 194 BookmarkMenuController* controller) override;
195 195
196 // BookmarkBarInstructionsDelegate: 196 // BookmarkBarInstructionsDelegate:
197 void ShowImportDialog() override; 197 void ShowImportDialog() override;
198 198
199 // BookmarkBubbleViewObserver: 199 // BookmarkBubbleViewObserver:
200 void OnBookmarkBubbleShown(const GURL& url) override; 200 void OnBookmarkBubbleShown(const GURL& url) override;
201 void OnBookmarkBubbleHidden() override; 201 void OnBookmarkBubbleHidden() override;
202 202
203 // BookmarkModelObserver: 203 // bookmarks::BookmarkModelObserver:
204 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override; 204 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override;
205 void BookmarkModelBeingDeleted(BookmarkModel* model) override; 205 void BookmarkModelBeingDeleted(BookmarkModel* model) override;
206 void BookmarkNodeMoved(BookmarkModel* model, 206 void BookmarkNodeMoved(BookmarkModel* model,
207 const BookmarkNode* old_parent, 207 const BookmarkNode* old_parent,
208 int old_index, 208 int old_index,
209 const BookmarkNode* new_parent, 209 const BookmarkNode* new_parent,
210 int new_index) override; 210 int new_index) override;
211 void BookmarkNodeAdded(BookmarkModel* model, 211 void BookmarkNodeAdded(BookmarkModel* model,
212 const BookmarkNode* parent, 212 const BookmarkNode* parent,
213 int index) override; 213 int index) override;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 445
446 ObserverList<BookmarkBarViewObserver> observers_; 446 ObserverList<BookmarkBarViewObserver> observers_;
447 447
448 // Factory used to delay showing of the drop menu. 448 // Factory used to delay showing of the drop menu.
449 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; 449 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_;
450 450
451 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 451 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
452 }; 452 };
453 453
454 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 454 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698