OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TAB_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
7 | 7 |
8 #include "build/build_config.h" // NOLINT | 8 #include "build/build_config.h" // NOLINT |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // or a continuation of the old one. |ordinal| is an optional parameter that | 151 // or a continuation of the old one. |ordinal| is an optional parameter that |
152 // returns the ordinal of the active match (also known as "the 7" part of | 152 // returns the ordinal of the active match (also known as "the 7" part of |
153 // "7 of 9"). A return value of -1 indicates failure. | 153 // "7 of 9"). A return value of -1 indicates failure. |
154 int FindInPage(const std::wstring& search_string, FindInPageDirection forward, | 154 int FindInPage(const std::wstring& search_string, FindInPageDirection forward, |
155 FindInPageCase match_case, bool find_next, int* ordinal); | 155 FindInPageCase match_case, bool find_next, int* ordinal); |
156 | 156 |
157 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT; | 157 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT; |
158 bool GetCookieByName(const GURL& url, | 158 bool GetCookieByName(const GURL& url, |
159 const std::string& name, | 159 const std::string& name, |
160 std::string* cookies) WARN_UNUSED_RESULT; | 160 std::string* cookies) WARN_UNUSED_RESULT; |
161 bool SetCookie(const GURL& url, const std::string& value) WARN_UNUSED_RESULT; | |
162 | |
163 bool GetDownloadDirectory(FilePath* download_directory) WARN_UNUSED_RESULT; | |
164 | 161 |
165 #if defined(OS_WIN) | 162 #if defined(OS_WIN) |
166 // The functions in this block are for external tabs, hence Windows only. | 163 // The functions in this block are for external tabs, hence Windows only. |
167 | 164 |
168 // The container of an externally hosted tab calls this to reflect any | 165 // The container of an externally hosted tab calls this to reflect any |
169 // accelerator keys that it did not process. This gives the tab a chance | 166 // accelerator keys that it did not process. This gives the tab a chance |
170 // to handle the keys | 167 // to handle the keys |
171 bool ProcessUnhandledAccelerator(const MSG& msg) WARN_UNUSED_RESULT; | 168 bool ProcessUnhandledAccelerator(const MSG& msg) WARN_UNUSED_RESULT; |
172 | 169 |
173 // Ask the tab to set focus to either the first or last element on the page. | 170 // Ask the tab to set focus to either the first or last element on the page. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 const std::wstring& frame_xpath, | 277 const std::wstring& frame_xpath, |
281 const std::wstring& jscript) WARN_UNUSED_RESULT; | 278 const std::wstring& jscript) WARN_UNUSED_RESULT; |
282 | 279 |
283 private: | 280 private: |
284 base::Lock list_lock_; // Protects the observers_list_. | 281 base::Lock list_lock_; // Protects the observers_list_. |
285 ObserverList<TabProxyDelegate> observers_list_; | 282 ObserverList<TabProxyDelegate> observers_list_; |
286 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 283 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
287 }; | 284 }; |
288 | 285 |
289 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 286 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |