OLD | NEW |
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_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 Point* location); | 301 Point* location); |
302 | 302 |
303 // Gets the attribute of the given element. If there are no errors, the | 303 // Gets the attribute of the given element. If there are no errors, the |
304 // function sets |value| and the caller takes ownership. | 304 // function sets |value| and the caller takes ownership. |
305 Error* GetAttribute(const ElementId& element, const std::string& key, | 305 Error* GetAttribute(const ElementId& element, const std::string& key, |
306 base::Value** value); | 306 base::Value** value); |
307 | 307 |
308 // Waits for all views to stop loading. Returns true on success. | 308 // Waits for all views to stop loading. Returns true on success. |
309 Error* WaitForAllViewsToStopLoading(); | 309 Error* WaitForAllViewsToStopLoading(); |
310 | 310 |
311 // Install packed extension at |path|. | |
312 Error* InstallExtensionDeprecated(const FilePath& path); | |
313 | |
314 // Install extension at |path|. | 311 // Install extension at |path|. |
315 Error* InstallExtension(const FilePath& path, std::string* extension_id); | 312 Error* InstallExtension(const FilePath& path, std::string* extension_id); |
316 | 313 |
317 Error* GetExtensionsInfo(base::ListValue* extension_ids); | 314 Error* GetExtensionsInfo(base::ListValue* extension_ids); |
318 | 315 |
319 Error* IsPageActionVisible(const WebViewId& tab_id, | 316 Error* IsPageActionVisible(const WebViewId& tab_id, |
320 const std::string& extension_id, | 317 const std::string& extension_id, |
321 bool* is_visible); | 318 bool* is_visible); |
322 | 319 |
323 Error* SetExtensionState(const std::string& extension_id, | 320 Error* SetExtensionState(const std::string& extension_id, |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. | 482 // (e.g., 18.0.995.0 -> 995). Only valid after Chrome has started. |
486 // See http://dev.chromium.org/releases/version-numbers. | 483 // See http://dev.chromium.org/releases/version-numbers. |
487 int build_no_; | 484 int build_no_; |
488 | 485 |
489 DISALLOW_COPY_AND_ASSIGN(Session); | 486 DISALLOW_COPY_AND_ASSIGN(Session); |
490 }; | 487 }; |
491 | 488 |
492 } // namespace webdriver | 489 } // namespace webdriver |
493 | 490 |
494 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ | 491 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_SESSION_H_ |
OLD | NEW |