Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: components/autofill/common/web_element_descriptor.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
6 #define COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ 6 #define COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "components/autofill/common/autofill_export.h"
11
10 namespace autofill { 12 namespace autofill {
11 13
12 // Holds information that can be used to retrieve an element. 14 // Holds information that can be used to retrieve an element.
13 struct WebElementDescriptor { 15 struct AUTOFILL_EXPORT WebElementDescriptor {
14 enum RetrievalMethod { 16 enum RetrievalMethod {
15 CSS_SELECTOR, 17 CSS_SELECTOR,
16 ID, 18 ID,
17 NONE, 19 NONE,
18 }; 20 };
19 21
20 WebElementDescriptor(); 22 WebElementDescriptor();
21 23
22 // Information to retrieve element with. 24 // Information to retrieve element with.
23 std::string descriptor; 25 std::string descriptor;
24 26
25 // Which retrieval method to use. 27 // Which retrieval method to use.
26 RetrievalMethod retrieval_method; 28 RetrievalMethod retrieval_method;
27 }; 29 };
28 30
29 } // namespace autofill 31 } // namespace autofill
30 32
31 #endif // COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_ 33 #endif // COMPONENTS_AUTOFILL_COMMON_WEB_ELEMENT_DESCRIPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698