diff options
author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 18:27:53 +0000 |
---|---|---|
committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-12 18:27:53 +0000 |
commit | 6d8ffc9f70711222db4aaaca570be0574e88de42 (patch) | |
tree | eafb5c341c9119e5c438025caa27dfda4902b096 /chrome/test/automation/browser_proxy.h | |
parent | a9710f39948f20b8eb3d9897a692a594374ee576 (diff) | |
download | chromium_src-6d8ffc9f70711222db4aaaca570be0574e88de42.zip chromium_src-6d8ffc9f70711222db4aaaca570be0574e88de42.tar.gz chromium_src-6d8ffc9f70711222db4aaaca570be0574e88de42.tar.bz2 |
Add pyauto hooks for bookmarks.
Get model, add/remove, add folder, reparent, change title/url.
BUG=34492
Review URL: http://codereview.chromium.org/792003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/browser_proxy.h')
-rw-r--r-- | chrome/test/automation/browser_proxy.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/test/automation/browser_proxy.h b/chrome/test/automation/browser_proxy.h index 939e87b..04e6288 100644 --- a/chrome/test/automation/browser_proxy.h +++ b/chrome/test/automation/browser_proxy.h @@ -181,6 +181,25 @@ class BrowserProxy : public AutomationResourceProxy { // it into position. Returns false on failure. bool GetBookmarkBarVisibility(bool* is_visible, bool* is_animating); + // Get the bookmarks as a JSON string and put it in |json_string|. + // Return true on success. + bool GetBookmarksAsJSON(std::string* json_string); + + // Wait for the bookmarks to load. Called implicitly by GetBookmarksAsJSON(). + bool WaitForBookmarkModelToLoad(); + + // Editing of the bookmark model. Bookmarks are referenced by id. + // Bookmark or group (folder) creation: + bool AddBookmarkGroup(int64 parent_id, int index, std::wstring& title); + bool AddBookmarkURL(int64 parent_id, int index, + std::wstring& title, const GURL& url); + // Bookmark editing: + bool ReparentBookmark(int64 id, int64 new_parent_id, int index); + bool SetBookmarkTitle(int64 id, std::wstring& title); + bool SetBookmarkURL(int64 id, const GURL& url); + // Finally, bookmark deletion: + bool RemoveBookmark(int64 id); + // Fills |*is_visible| with whether the browser's download shelf is currently // visible. The return value indicates success. On failure, |*is_visible| is // unchanged. |