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 COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ |
6 #define COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace autofill { | 10 namespace autofill { |
11 | 11 |
12 // Holds information that can be used to retrieve an element. | 12 // Holds information that can be used to retrieve an element. |
13 struct WebElementDescriptor { | 13 struct WebElementDescriptor { |
14 enum RetrievalMethod { | 14 enum RetrievalMethod { |
15 CSS_SELECTOR, | 15 CSS_SELECTOR, |
16 ID, | 16 ID, |
17 NONE, | 17 NONE, |
18 }; | 18 }; |
19 | 19 |
20 WebElementDescriptor(); | 20 WebElementDescriptor(); |
21 | 21 |
22 // Information to retrieve element with. | 22 // Information to retrieve element with. |
23 std::string descriptor; | 23 std::string descriptor; |
24 | 24 |
25 // Which retrieval method to use. | 25 // Which retrieval method to use. |
26 RetrievalMethod retrieval_method; | 26 RetrievalMethod retrieval_method; |
27 }; | 27 }; |
28 | 28 |
29 } // namespace autofill | 29 } // namespace autofill |
30 | 30 |
31 #endif // COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ | 31 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ |
OLD | NEW |