OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_ |
| 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_ |
| 7 |
| 8 class BookmarkNode; |
| 9 class PrefService; |
| 10 class Profile; |
| 11 |
| 12 // Cross-platform API for interacting with BookmarkManager views. |
| 13 // Implemented alongside the platform-specific view classes. |
| 14 class BookmarkManager { |
| 15 public: |
| 16 // Select |node| in the tree view of the bookmark manager, but only if the |
| 17 // manager is showing and is for |profile|. |
| 18 static void SelectInTree(Profile* profile, BookmarkNode* node); |
| 19 |
| 20 // Show the bookmark manager for |profile|. Only one bookmark manager shows |
| 21 // at a time, so if another one is showing, this does nothing. |
| 22 static void Show(Profile* profile); |
| 23 }; |
| 24 |
| 25 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_ |
OLD | NEW |