| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 Status ToggleOptionElement( | 125 Status ToggleOptionElement( |
| 126 Session* session, | 126 Session* session, |
| 127 WebView* web_view, | 127 WebView* web_view, |
| 128 const std::string& element_id); | 128 const std::string& element_id); |
| 129 | 129 |
| 130 Status ScrollElementIntoView( | 130 Status ScrollElementIntoView( |
| 131 Session* session, | 131 Session* session, |
| 132 WebView* web_view, | 132 WebView* web_view, |
| 133 const std::string& element_id, | 133 const std::string& element_id, |
| 134 const WebPoint* offset, |
| 134 WebPoint* location); | 135 WebPoint* location); |
| 135 | 136 |
| 136 // |element_id| refers to the element which is to be scrolled into view. | 137 // |element_id| refers to the element which is to be scrolled into view. |
| 137 // |clickable_element_id| refers to the element needing clickable verification. | 138 // |clickable_element_id| refers to the element needing clickable verification. |
| 138 // They are usually the same, but can be different. This is useful when an image | 139 // They are usually the same, but can be different. This is useful when an image |
| 139 // uses map/area. The image is scrolled, but check clickable against the area. | 140 // uses map/area. The image is scrolled, but check clickable against the area. |
| 140 // If |clickable_element_id| is "", no verification will be performed. | 141 // If |clickable_element_id| is "", no verification will be performed. |
| 141 Status ScrollElementRegionIntoView( | 142 Status ScrollElementRegionIntoView( |
| 142 Session* session, | 143 Session* session, |
| 143 WebView* web_view, | 144 WebView* web_view, |
| 144 const std::string& element_id, | 145 const std::string& element_id, |
| 145 const WebRect& region, | 146 const WebRect& region, |
| 146 bool center, | 147 bool center, |
| 147 const std::string& clickable_element_id, | 148 const std::string& clickable_element_id, |
| 148 WebPoint* location); | 149 WebPoint* location); |
| 149 | 150 |
| 150 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ | 151 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ |
| OLD | NEW |