| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CHROMEDRIVER_ELEMENT_UTIL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 scoped_ptr<base::Value>* value); | 40 scoped_ptr<base::Value>* value); |
| 41 | 41 |
| 42 Status IsElementAttributeEqualToIgnoreCase( | 42 Status IsElementAttributeEqualToIgnoreCase( |
| 43 Session* session, | 43 Session* session, |
| 44 WebView* web_view, | 44 WebView* web_view, |
| 45 const std::string& element_id, | 45 const std::string& element_id, |
| 46 const std::string& attribute_name, | 46 const std::string& attribute_name, |
| 47 const std::string& attribute_value, | 47 const std::string& attribute_value, |
| 48 bool* is_equal); | 48 bool* is_equal); |
| 49 | 49 |
| 50 // |is_clickable| could be null. | |
| 51 // If not null, it's set to indicate whether center of the element is clickable. | |
| 52 Status GetElementClickableLocation( | 50 Status GetElementClickableLocation( |
| 53 Session* session, | 51 Session* session, |
| 54 WebView* web_view, | 52 WebView* web_view, |
| 55 const std::string& element_id, | 53 const std::string& element_id, |
| 56 WebPoint* location, | 54 WebPoint* location); |
| 57 bool* is_clickable); | |
| 58 | 55 |
| 59 Status GetElementRegion( | 56 Status GetElementRegion( |
| 60 Session* session, | 57 Session* session, |
| 61 WebView* web_view, | 58 WebView* web_view, |
| 62 const std::string& element_id, | 59 const std::string& element_id, |
| 63 WebRect* rect); | 60 WebRect* rect); |
| 64 | 61 |
| 65 Status GetElementTagName( | 62 Status GetElementTagName( |
| 66 Session* session, | 63 Session* session, |
| 67 WebView* web_view, | 64 WebView* web_view, |
| 68 const std::string& element_id, | 65 const std::string& element_id, |
| 69 std::string* name); | 66 std::string* name); |
| 70 | 67 |
| 71 Status GetElementSize( | 68 Status GetElementSize( |
| 72 Session* session, | 69 Session* session, |
| 73 WebView* web_view, | 70 WebView* web_view, |
| 74 const std::string& element_id, | 71 const std::string& element_id, |
| 75 WebSize* size); | 72 WebSize* size); |
| 76 | 73 |
| 77 Status IsElementClickable( | |
| 78 Session* session, | |
| 79 WebView* web_view, | |
| 80 const std::string& element_id, | |
| 81 WebPoint* location, | |
| 82 bool* is_clickable); | |
| 83 | |
| 84 Status IsElementDisplayed( | 74 Status IsElementDisplayed( |
| 85 Session* session, | 75 Session* session, |
| 86 WebView* web_view, | 76 WebView* web_view, |
| 87 const std::string& element_id, | 77 const std::string& element_id, |
| 88 bool ignore_opacity, | 78 bool ignore_opacity, |
| 89 bool* is_displayed); | 79 bool* is_displayed); |
| 90 | 80 |
| 91 Status IsElementEnabled( | 81 Status IsElementEnabled( |
| 92 Session* session, | 82 Session* session, |
| 93 WebView* web_view, | 83 WebView* web_view, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 122 WebView* web_view, | 112 WebView* web_view, |
| 123 const std::string& id, | 113 const std::string& id, |
| 124 WebPoint* location); | 114 WebPoint* location); |
| 125 | 115 |
| 126 Status ScrollElementRegionIntoView( | 116 Status ScrollElementRegionIntoView( |
| 127 Session* session, | 117 Session* session, |
| 128 WebView* web_view, | 118 WebView* web_view, |
| 129 const std::string& element_id, | 119 const std::string& element_id, |
| 130 const WebRect& region, | 120 const WebRect& region, |
| 131 bool center, | 121 bool center, |
| 122 bool verify_clickable, |
| 132 WebPoint* location); | 123 WebPoint* location); |
| 133 | 124 |
| 134 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ | 125 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ |
| OLD | NEW |