| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TEST_AUTOMATION_BROWSER_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Get the bookmarks as a JSON string and put it in |json_string|. | 147 // Get the bookmarks as a JSON string and put it in |json_string|. |
| 148 // Return true on success. | 148 // Return true on success. |
| 149 bool GetBookmarksAsJSON(std::string* json_string) WARN_UNUSED_RESULT; | 149 bool GetBookmarksAsJSON(std::string* json_string) WARN_UNUSED_RESULT; |
| 150 | 150 |
| 151 // Wait for the bookmarks to load. Called implicitly by GetBookmarksAsJSON(). | 151 // Wait for the bookmarks to load. Called implicitly by GetBookmarksAsJSON(). |
| 152 bool WaitForBookmarkModelToLoad() WARN_UNUSED_RESULT; | 152 bool WaitForBookmarkModelToLoad() WARN_UNUSED_RESULT; |
| 153 | 153 |
| 154 // Editing of the bookmark model. Bookmarks are referenced by id. | 154 // Editing of the bookmark model. Bookmarks are referenced by id. |
| 155 // Bookmark or group (folder) creation: | 155 // Bookmark or group (folder) creation: |
| 156 bool AddBookmarkGroup(int64 parent_id, int index, | 156 bool AddBookmarkGroup(int64 parent_id, int index, |
| 157 std::wstring& title) WARN_UNUSED_RESULT; | 157 const string16& title) WARN_UNUSED_RESULT; |
| 158 bool AddBookmarkURL(int64 parent_id, int index, | 158 bool AddBookmarkURL(int64 parent_id, int index, const string16& title, |
| 159 std::wstring& title, const GURL& url) WARN_UNUSED_RESULT; | 159 const GURL& url) WARN_UNUSED_RESULT; |
| 160 // Bookmark editing: | 160 // Bookmark editing: |
| 161 bool ReparentBookmark(int64 id, int64 new_parent_id, | 161 bool ReparentBookmark(int64 id, int64 new_parent_id, |
| 162 int index) WARN_UNUSED_RESULT; | 162 int index) WARN_UNUSED_RESULT; |
| 163 bool SetBookmarkTitle(int64 id, const std::wstring& title) WARN_UNUSED_RESULT; | 163 bool SetBookmarkTitle(int64 id, const string16& title) WARN_UNUSED_RESULT; |
| 164 bool SetBookmarkURL(int64 id, const GURL& url) WARN_UNUSED_RESULT; | 164 bool SetBookmarkURL(int64 id, const GURL& url) WARN_UNUSED_RESULT; |
| 165 // Finally, bookmark deletion: | 165 // Finally, bookmark deletion: |
| 166 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT; | 166 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT; |
| 167 | 167 |
| 168 // Fills |*is_visible| with whether the browser's download shelf is currently | 168 // Fills |*is_visible| with whether the browser's download shelf is currently |
| 169 // visible. The return value indicates success. On failure, |*is_visible| is | 169 // visible. The return value indicates success. On failure, |*is_visible| is |
| 170 // unchanged. | 170 // unchanged. |
| 171 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT; | 171 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT; |
| 172 | 172 |
| 173 // Shows or hides the download shelf. | 173 // Shows or hides the download shelf. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 std::vector<float>* stop_times); | 234 std::vector<float>* stop_times); |
| 235 | 235 |
| 236 | 236 |
| 237 protected: | 237 protected: |
| 238 virtual ~BrowserProxy() {} | 238 virtual ~BrowserProxy() {} |
| 239 private: | 239 private: |
| 240 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); | 240 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ | 243 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ |
| OLD | NEW |