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

Side by Side Diff: chrome/browser/bookmarks/bookmark_model.h

Issue 27262: Wires up sorting of bookmarks to the 'organize menu' in the bookmark... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #include "base/lock.h" 10 #include "base/lock.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Invoked when the title or favicon of a node has changed. 165 // Invoked when the title or favicon of a node has changed.
166 virtual void BookmarkNodeChanged(BookmarkModel* model, 166 virtual void BookmarkNodeChanged(BookmarkModel* model,
167 BookmarkNode* node) = 0; 167 BookmarkNode* node) = 0;
168 168
169 // Invoked when a favicon has finished loading. 169 // Invoked when a favicon has finished loading.
170 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model, 170 virtual void BookmarkNodeFavIconLoaded(BookmarkModel* model,
171 BookmarkNode* node) = 0; 171 BookmarkNode* node) = 0;
172 172
173 // Invoked when the children (just direct children, not descendants) of 173 // Invoked when the children (just direct children, not descendants) of
174 // |node| have been reordered in some way, such as sorted. 174 // |node| have been reordered in some way, such as sorted.
175 // TODO(sky): make this pure virtual when all observers have been updated.
176 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model, 175 virtual void BookmarkNodeChildrenReordered(BookmarkModel* model,
177 BookmarkNode* node) {} 176 BookmarkNode* node) = 0;
178 }; 177 };
179 178
180 // BookmarkModel -------------------------------------------------------------- 179 // BookmarkModel --------------------------------------------------------------
181 180
182 // BookmarkModel provides a directed acyclic graph of the starred entries 181 // BookmarkModel provides a directed acyclic graph of the starred entries
183 // and groups. Two graphs are provided for the two entry points: those on 182 // and groups. Two graphs are provided for the two entry points: those on
184 // the bookmark bar, and those in the other folder. 183 // the bookmark bar, and those in the other folder.
185 // 184 //
186 // An observer may be attached to observer relevant events. 185 // An observer may be attached to observer relevant events.
187 // 186 //
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 // TODO(port): Implement for other platforms. 434 // TODO(port): Implement for other platforms.
436 435
437 // Handle to event signaled when loading is done. 436 // Handle to event signaled when loading is done.
438 ScopedHandle loaded_signal_; 437 ScopedHandle loaded_signal_;
439 #endif 438 #endif
440 439
441 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 440 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
442 }; 441 };
443 442
444 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_ 443 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_BAR_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698