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

Unified Diff: chrome/browser/automation/testing_automation_provider.h

Issue 10828245: Final set of conversions of automation calls to the JSON interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 months 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
Index: chrome/browser/automation/testing_automation_provider.h
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 2f9a3ebd67409131a6350b837de816289df93083..0500a7a35cf047534666db3561b3c9300f3b1e94 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -161,41 +161,35 @@ class TestingAutomationProvider : public AutomationProvider,
// Get the visibility state of the Find window.
void GetFindWindowVisibility(int handle, bool* visible);
- // Get the visibility state of the Bookmark bar.
- void GetBookmarkBarVisibility(
- int handle, bool* visible, bool* animating, bool* detached);
-
- // Get the bookmarks as a JSON string.
- void GetBookmarksAsJSON(int handle, std::string* bookmarks_as_json,
- bool* success);
-
// Wait for the bookmark model to load.
void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message);
// Set |loaded| to true if the bookmark model has loaded, else false.
void BookmarkModelHasLoaded(int handle, bool* loaded);
- // Editing, modification, and removal of bookmarks.
+ // Get the visibility state of the Bookmark bar.
+ // Returns a status dictionary over the JSON interface.
+ void GetBookmarkBarStatus(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Get the bookmarks as a JSON string.
+ void GetBookmarksAsJSON(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+
+ // Editing, modification, and removal of bookmarks through the JSON interface.
// Bookmarks are referenced by id.
- void AddBookmarkGroup(int handle,
- int64 parent_id, int index, std::wstring title,
- bool* success);
- void AddBookmarkURL(int handle,
- int64 parent_id, int index,
- std::wstring title, const GURL& url,
- bool* success);
- void ReparentBookmark(int handle,
- int64 id, int64 new_parent_id, int index,
- bool* success);
- void SetBookmarkTitle(int handle,
- int64 id, std::wstring title,
- bool* success);
- void SetBookmarkURL(int handle,
- int64 id, const GURL& url,
- bool* success);
- void RemoveBookmark(int handle,
- int64 id,
- bool* success);
+ void WaitForBookmarkModelToLoadJSON(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+ void AddBookmark(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+ void ReparentBookmark(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+ void SetBookmarkTitle(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+ void SetBookmarkURL(base::DictionaryValue* args,
+ IPC::Message* reply_message);
+ void RemoveBookmark(base::DictionaryValue* args,
+ IPC::Message* reply_message);
void WaitForBrowserWindowCountToBecome(int target_count,
IPC::Message* reply_message);
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698