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" |
11 #include "chrome/test/chromedriver/basic_types.h" | 11 #include "chrome/test/chromedriver/basic_types.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class DictionaryValue; | 14 class DictionaryValue; |
15 class ListValue; | 15 class ListValue; |
16 class Value; | 16 class Value; |
17 } | 17 } |
18 | 18 |
19 struct Session; | 19 struct Session; |
20 class Status; | 20 class Status; |
21 class WebView; | 21 class WebView; |
22 | 22 |
23 base::DictionaryValue* CreateElement(const std::string& element_id); | 23 base::DictionaryValue* CreateElement(const std::string& element_id); |
24 | 24 |
| 25 base::Value* CreateValueFrom(const WebPoint& point); |
| 26 |
25 // |root_element_id| could be null when no root element is given. | 27 // |root_element_id| could be null when no root element is given. |
26 Status FindElement( | 28 Status FindElement( |
27 int interval_ms, | 29 int interval_ms, |
28 bool only_one, | 30 bool only_one, |
29 const std::string* root_element_id, | 31 const std::string* root_element_id, |
30 Session* session, | 32 Session* session, |
31 WebView* web_view, | 33 WebView* web_view, |
32 const base::DictionaryValue& params, | 34 const base::DictionaryValue& params, |
33 scoped_ptr<base::Value>* value); | 35 scoped_ptr<base::Value>* value); |
34 | 36 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Status ScrollElementRegionIntoView( | 125 Status ScrollElementRegionIntoView( |
124 Session* session, | 126 Session* session, |
125 WebView* web_view, | 127 WebView* web_view, |
126 const std::string& element_id, | 128 const std::string& element_id, |
127 const WebRect& region, | 129 const WebRect& region, |
128 bool center, | 130 bool center, |
129 bool verify_clickable, | 131 bool verify_clickable, |
130 WebPoint* location); | 132 WebPoint* location); |
131 | 133 |
132 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ | 134 #endif // CHROME_TEST_CHROMEDRIVER_ELEMENT_UTIL_H_ |
OLD | NEW |