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

Unified Diff: chrome/browser/views/bookmark_manager_view.h

Issue 9471: Adds import/export of bookmarks to bookmarks.html file.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/views/bookmark_manager_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/bookmark_manager_view.h
===================================================================
--- chrome/browser/views/bookmark_manager_view.h (revision 4885)
+++ chrome/browser/views/bookmark_manager_view.h (working copy)
@@ -5,9 +5,11 @@
#ifndef CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_
#define CHROME_BROWSER_VIEWS_BOOKMARK_MANAGER_VIEW_H_
+#include "base/ref_counted.h"
#include "base/task.h"
#include "chrome/browser/bookmarks/bookmark_context_menu.h"
#include "chrome/browser/bookmarks/bookmark_model.h"
+#include "chrome/browser/shell_dialogs.h"
#include "chrome/views/table_view.h"
#include "chrome/views/text_field.h"
#include "chrome/views/tree_view.h"
@@ -39,7 +41,9 @@
public views::TextField::Controller,
public BookmarkModelObserver,
public views::ContextMenuController,
- public views::ViewMenuDelegate {
+ public views::ViewMenuDelegate,
+ public views::MenuDelegate,
+ public SelectFileDialog::Listener {
public:
explicit BookmarkManagerView(Profile* profile);
virtual ~BookmarkManagerView();
@@ -56,6 +60,9 @@
// selected and node is selected in the table.
void SelectInTree(BookmarkNode* node);
+ // Expands all the children of the selected folder.
+ void ExpandAll(BookmarkNode* node);
+
// Returns the selected folder, which may be null.
BookmarkNode* GetSelectedFolder();
@@ -137,6 +144,13 @@
// ViewMenuDelegate.
virtual void RunMenu(views::View* source, const CPoint& pt, HWND hwnd);
+ // MenuDelegate.
+ virtual void ExecuteCommand(int id);
+
+ // SelectFileDialog::Listener.
+ virtual void FileSelected(const std::wstring& path, void* params);
+ virtual void FileSelectionCanceled(void* params);
+
// Creates the table model to use when searching. This returns NULL if there
// is no search text.
BookmarkTableModel* CreateSearchTableModel();
@@ -167,6 +181,14 @@
int y,
BookmarkContextMenu::ConfigurationType config);
+ // Shows the tools menu.
+ void ShowToolsMenu(HWND host, int x, int y);
+
+ // Shows the import/export file chooser. These invoke
+ // FileSelected/FileSelectionCanceled when done.
+ void ShowImportBookmarksFileChooser();
+ void ShowExportBookmarksFileChooser();
+
Profile* profile_;
BookmarkTableView* table_view_;
BookmarkFolderTreeView* tree_view_;
@@ -175,6 +197,9 @@
views::TextField* search_tf_;
views::SingleSplitView* split_view_;
+ // Import/export file dialog.
+ scoped_refptr<SelectFileDialog> select_file_dialog_;
+
// Factory used for delaying search.
ScopedRunnableMethodFactory<BookmarkManagerView> search_factory_;
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/views/bookmark_manager_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698