| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <string> | 5 #import <string> |
| 6 | 6 |
| 7 #import <EarlGrey/EarlGrey.h> | 7 #import <EarlGrey/EarlGrey.h> |
| 8 | 8 |
| 9 namespace web { | 9 namespace web { |
| 10 | 10 |
| 11 // TODO(crbug.com/614167): Remove this method when it is no longer used. | |
| 12 // Shorthand for GREYMatchers::matcherForWebViewContainingText. | |
| 13 id<GREYMatcher> webViewContainingText(NSString* text); | |
| 14 | |
| 15 // TODO(crbug.com/614167): Remove this method when it is no longer used. | |
| 16 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. | |
| 17 id<GREYMatcher> addressFieldText(NSString* text); | |
| 18 | |
| 19 // Shorthand for GREYMatchers::matcherForWebViewContainingText. | 11 // Shorthand for GREYMatchers::matcherForWebViewContainingText. |
| 20 id<GREYMatcher> webViewContainingText(const std::string& text); | 12 id<GREYMatcher> webViewContainingText(const std::string& text); |
| 21 | 13 |
| 22 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. | 14 // Shorthand for GREYMatchers::matcherForAddressFieldEqualToText. |
| 23 id<GREYMatcher> addressFieldText(const std::string& text); | 15 id<GREYMatcher> addressFieldText(const std::string& text); |
| 24 | 16 |
| 25 // Shorthand for GREYMatchers::matcherForBackButton. | 17 // Shorthand for GREYMatchers::matcherForBackButton. |
| 26 id<GREYMatcher> backButton(); | 18 id<GREYMatcher> backButton(); |
| 27 | 19 |
| 28 // Shorthand for GREYMatchers::matcherForForwardButton. | 20 // Shorthand for GREYMatchers::matcherForForwardButton. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 44 // Matcher for back button in web shell. | 36 // Matcher for back button in web shell. |
| 45 + (id<GREYMatcher>)matcherForWebShellBackButton; | 37 + (id<GREYMatcher>)matcherForWebShellBackButton; |
| 46 | 38 |
| 47 // Matcher for forward button in web shell. | 39 // Matcher for forward button in web shell. |
| 48 + (id<GREYMatcher>)matcherForWebShellForwardButton; | 40 + (id<GREYMatcher>)matcherForWebShellForwardButton; |
| 49 | 41 |
| 50 // Matcher for address field in web shell. | 42 // Matcher for address field in web shell. |
| 51 + (id<GREYMatcher>)matcherForWebShellAddressField; | 43 + (id<GREYMatcher>)matcherForWebShellAddressField; |
| 52 | 44 |
| 53 @end | 45 @end |
| OLD | NEW |