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

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

Issue 8819008: Revert 113103 - Changes the visibility of the 'mobile' node based on whether there is a node on t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_BOOKMARKS_BOOKMARK_MODEL_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 322
323 // Returns the next node ID. 323 // Returns the next node ID.
324 int64 next_node_id() const { return next_node_id_; } 324 int64 next_node_id() const { return next_node_id_; }
325 325
326 // Returns the object responsible for tracking the set of expanded nodes in 326 // Returns the object responsible for tracking the set of expanded nodes in
327 // the bookmark editor. 327 // the bookmark editor.
328 BookmarkExpandedStateTracker* expanded_state_tracker() { 328 BookmarkExpandedStateTracker* expanded_state_tracker() {
329 return expanded_state_tracker_.get(); 329 return expanded_state_tracker_.get();
330 } 330 }
331 331
332 // Sets whether the mobile folder is visible. This is set by sync.
333 void SetMobileFolderVisible(bool value);
334
335 private: 332 private:
336 friend class BookmarkCodecTest; 333 friend class BookmarkCodecTest;
337 friend class BookmarkModelTest; 334 friend class BookmarkModelTest;
338 friend class BookmarkStorage; 335 friend class BookmarkStorage;
339 336
340 // Used to order BookmarkNodes by URL. 337 // Used to order BookmarkNodes by URL.
341 class NodeURLComparator { 338 class NodeURLComparator {
342 public: 339 public:
343 bool operator()(const BookmarkNode* n1, const BookmarkNode* n2) const { 340 bool operator()(const BookmarkNode* n1, const BookmarkNode* n2) const {
344 return n1->url() < n2->url(); 341 return n1->url() < n2->url();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 scoped_ptr<BookmarkIndex> index_; 455 scoped_ptr<BookmarkIndex> index_;
459 456
460 base::WaitableEvent loaded_signal_; 457 base::WaitableEvent loaded_signal_;
461 458
462 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_; 459 scoped_ptr<BookmarkExpandedStateTracker> expanded_state_tracker_;
463 460
464 DISALLOW_COPY_AND_ASSIGN(BookmarkModel); 461 DISALLOW_COPY_AND_ASSIGN(BookmarkModel);
465 }; 462 };
466 463
467 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_ 464 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698