summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_manager.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_manager.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_manager.h b/chrome/browser/bookmarks/bookmark_manager.h
new file mode 100644
index 0000000..28a210b
--- /dev/null
+++ b/chrome/browser/bookmarks/bookmark_manager.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_
+#define CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_
+
+class BookmarkNode;
+class PrefService;
+class Profile;
+
+// Cross-platform API for interacting with BookmarkManager views.
+// Implemented alongside the platform-specific view classes.
+class BookmarkManager {
+ public:
+ // Select |node| in the tree view of the bookmark manager, but only if the
+ // manager is showing and is for |profile|.
+ static void SelectInTree(Profile* profile, BookmarkNode* node);
+
+ // Show the bookmark manager for |profile|. Only one bookmark manager shows
+ // at a time, so if another one is showing, this does nothing.
+ static void Show(Profile* profile);
+};
+
+#endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_MANAGER_H_