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

Side by Side 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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 // Brings the browser window to the front and activates it. 174 // Brings the browser window to the front and activates it.
175 void BringBrowserToFront(int browser_handle, bool* success); 175 void BringBrowserToFront(int browser_handle, bool* success);
176 176
177 // Responds to requests to open the FindInPage window. 177 // Responds to requests to open the FindInPage window.
178 void HandleOpenFindInPageRequest(const IPC::Message& message, 178 void HandleOpenFindInPageRequest(const IPC::Message& message,
179 int handle); 179 int handle);
180 180
181 // Get the visibility state of the Find window. 181 // Get the visibility state of the Find window.
182 void GetFindWindowVisibility(int handle, bool* visible); 182 void GetFindWindowVisibility(int handle, bool* visible);
183 183
184 // Get the visibility state of the Bookmark bar.
185 void GetBookmarkBarVisibility(
186 int handle, bool* visible, bool* animating, bool* detached);
187
188 // Get the bookmarks as a JSON string.
189 void GetBookmarksAsJSON(int handle, std::string* bookmarks_as_json,
190 bool* success);
191
192 // Wait for the bookmark model to load. 184 // Wait for the bookmark model to load.
193 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message); 185 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message);
194 186
195 // Set |loaded| to true if the bookmark model has loaded, else false. 187 // Set |loaded| to true if the bookmark model has loaded, else false.
196 void BookmarkModelHasLoaded(int handle, bool* loaded); 188 void BookmarkModelHasLoaded(int handle, bool* loaded);
197 189
198 // Editing, modification, and removal of bookmarks. 190 // Get the visibility state of the Bookmark bar.
191 // Returns a status dictionary over the JSON interface.
192 void GetBookmarkBarStatus(base::DictionaryValue* args,
193 IPC::Message* reply_message);
194
195 // Get the bookmarks as a JSON string.
196 void GetBookmarksAsJSON(base::DictionaryValue* args,
197 IPC::Message* reply_message);
198
199 // Editing, modification, and removal of bookmarks through the JSON interface.
199 // Bookmarks are referenced by id. 200 // Bookmarks are referenced by id.
200 void AddBookmarkGroup(int handle, 201 void WaitForBookmarkModelToLoadJSON(base::DictionaryValue* args,
201 int64 parent_id, int index, std::wstring title, 202 IPC::Message* reply_message);
202 bool* success); 203 void AddBookmark(base::DictionaryValue* args,
203 void AddBookmarkURL(int handle, 204 IPC::Message* reply_message);
204 int64 parent_id, int index, 205 void ReparentBookmark(base::DictionaryValue* args,
205 std::wstring title, const GURL& url, 206 IPC::Message* reply_message);
206 bool* success); 207 void SetBookmarkTitle(base::DictionaryValue* args,
207 void ReparentBookmark(int handle, 208 IPC::Message* reply_message);
208 int64 id, int64 new_parent_id, int index, 209 void SetBookmarkURL(base::DictionaryValue* args,
209 bool* success); 210 IPC::Message* reply_message);
210 void SetBookmarkTitle(int handle, 211 void RemoveBookmark(base::DictionaryValue* args,
211 int64 id, std::wstring title, 212 IPC::Message* reply_message);
212 bool* success);
213 void SetBookmarkURL(int handle,
214 int64 id, const GURL& url,
215 bool* success);
216 void RemoveBookmark(int handle,
217 int64 id,
218 bool* success);
219 213
220 void WaitForBrowserWindowCountToBecome(int target_count, 214 void WaitForBrowserWindowCountToBecome(int target_count,
221 IPC::Message* reply_message); 215 IPC::Message* reply_message);
222 216
223 void GoBackBlockUntilNavigationsComplete(int handle, 217 void GoBackBlockUntilNavigationsComplete(int handle,
224 int number_of_navigations, 218 int number_of_navigations,
225 IPC::Message* reply_message); 219 IPC::Message* reply_message);
226 220
227 void GoForwardBlockUntilNavigationsComplete(int handle, 221 void GoForwardBlockUntilNavigationsComplete(int handle,
228 int number_of_navigations, 222 int number_of_navigations,
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 scoped_ptr<AutomationEventQueue> automation_event_queue_; 1722 scoped_ptr<AutomationEventQueue> automation_event_queue_;
1729 1723
1730 // List of commands which just finish synchronously and don't require 1724 // List of commands which just finish synchronously and don't require
1731 // setting up an observer. 1725 // setting up an observer.
1732 static const int kSynchronousCommands[]; 1726 static const int kSynchronousCommands[];
1733 1727
1734 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1728 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1735 }; 1729 };
1736 1730
1737 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1731 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698