diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 17:53:09 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-07 17:53:09 +0000 |
commit | fafc8a4203d4308251f17fc18a61cfec71a9a27c (patch) | |
tree | dfee81ebce10c148f4dfa13b4621bc8fd40473fb /chrome/browser/views/bookmark_manager_view.h | |
parent | 8bc886faa6a178f51bf094efe491ab1da9595d14 (diff) | |
download | chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.zip chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.tar.gz chromium_src-fafc8a4203d4308251f17fc18a61cfec71a9a27c.tar.bz2 |
Adds cut/copy/paste support to the bookmark manager tree/table and
context menus.
BUG=4186
TEST=try cut/copy/paste from table/tree in the bookmark manager as
well as context menus in bookmark manager.
Review URL: http://codereview.chromium.org/9481
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/bookmark_manager_view.h')
-rw-r--r-- | chrome/browser/views/bookmark_manager_view.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/browser/views/bookmark_manager_view.h b/chrome/browser/views/bookmark_manager_view.h index 0aa83dd..be99a16 100644 --- a/chrome/browser/views/bookmark_manager_view.h +++ b/chrome/browser/views/bookmark_manager_view.h @@ -45,6 +45,13 @@ class BookmarkManagerView : public views::View, public views::MenuDelegate, public SelectFileDialog::Listener { public: + enum CutCopyPasteType { + CUT, + COPY, + PASTE, + NONE + }; + explicit BookmarkManagerView(Profile* profile); virtual ~BookmarkManagerView(); @@ -63,7 +70,7 @@ class BookmarkManagerView : public views::View, // Expands all the children of the selected folder. void ExpandAll(BookmarkNode* node); - // Returns the selected folder, which may be null. + // Returns the selected folder in the tree, which may be null. BookmarkNode* GetSelectedFolder(); // Returns the selection of the table. @@ -99,8 +106,9 @@ class BookmarkManagerView : public views::View, virtual void OnTableViewDelete(views::TableView* table); virtual void OnKeyDown(unsigned short virtual_keycode); - // TreeViewController method. + // TreeViewController methods. virtual void OnTreeViewSelectionChanged(views::TreeView* tree_view); + virtual void OnTreeViewKeyDown(unsigned short virtual_keycode); // BookmarkModelObserver. We're only installed as an observer until the // bookmarks are loaded. @@ -181,6 +189,10 @@ class BookmarkManagerView : public views::View, int y, BookmarkContextMenu::ConfigurationType config); + // Invoked to handle cut/copy/paste from the table or tree. If |from_table| + // is true the source is the table. + void OnCutCopyPaste(CutCopyPasteType type, bool from_table); + // Shows the tools menu. void ShowToolsMenu(HWND host, int x, int y); |