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

Side by Side Diff: components/autofill/browser/autocheckout_page_meta_data.h

Issue 15487004: Autocheckout: parse multiple clicks setting in autofill response. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove wait_time_ms Created 7 years, 7 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
OLDNEW
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 COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
7 7
8 #include <vector>
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 #include "components/autofill/common/web_element_descriptor.h" 11 #include "components/autofill/common/web_element_descriptor.h"
10 12
11 namespace autofill { 13 namespace autofill {
12 14
13 // Container for multipage Autocheckout data. 15 // Container for multipage Autocheckout data.
14 struct AutocheckoutPageMetaData { 16 struct AutocheckoutPageMetaData {
15 AutocheckoutPageMetaData(); 17 AutocheckoutPageMetaData();
16 ~AutocheckoutPageMetaData(); 18 ~AutocheckoutPageMetaData();
17 19
(...skipping 11 matching lines...) Expand all
29 31
30 // Page number of the multipage Autofill flow this form belongs to 32 // Page number of the multipage Autofill flow this form belongs to
31 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set 33 // (zero-indexed). If this form doesn't belong to any autofill flow, it is set
32 // to -1. 34 // to -1.
33 int current_page_number; 35 int current_page_number;
34 36
35 // Total number of pages in the multipage Autofill flow. If this form doesn't 37 // Total number of pages in the multipage Autofill flow. If this form doesn't
36 // belong to any autofill flow, it is set to -1. 38 // belong to any autofill flow, it is set to -1.
37 int total_pages; 39 int total_pages;
38 40
41 // A list of elements to click before filling form fields.
42 // Elements have to be clicked in order, and may wait between clicks.
Ilya Sherman 2013/05/23 09:04:42 nit: No waiting.
benquan 2013/05/24 00:45:11 Done.
43 std::vector<WebElementDescriptor> click_elements_before_formfill;
Ilya Sherman 2013/05/23 09:04:42 nit: "formfill" -> "form_fill" or something like t
benquan 2013/05/24 00:45:11 Done.
44
45 // A list of elements to click after filling form fields, and before clicking
46 // page_advance_button.
Ilya Sherman 2013/05/23 09:04:42 Why not just make the page_advance_button always b
benquan 2013/05/24 00:45:11 page_advance_button is already in the proto and ou
Ilya Sherman 2013/05/31 23:14:49 That affects parsing the XML, but not the structur
benquan 2013/06/01 01:08:39 We do expect page navigation when click on page_ad
Ilya Sherman 2013/06/01 01:22:59 Hmm, fair enough. Please add this explanation to
benquan 2013/06/03 17:55:22 Done.
47 // Elements have to be clicked in order, and may wait between clicks.
Ilya Sherman 2013/05/23 09:04:42 nit: No waiting.
benquan 2013/05/24 00:45:11 Done.
48 std::vector<WebElementDescriptor> click_elements_after_formfill;
Ilya Sherman 2013/05/23 09:04:42 nit: "formfill" -> "form_fill" or something like t
benquan 2013/05/24 00:45:11 Done.
49
39 // The proceed element of the multipage Autofill flow. It can be empty 50 // The proceed element of the multipage Autofill flow. It can be empty
40 // if current page is the last page of a flow or isn't a member of a flow. 51 // if current page is the last page of a flow or isn't a member of a flow.
41 WebElementDescriptor proceed_element_descriptor; 52 WebElementDescriptor proceed_element_descriptor;
42 53
43 private: 54 private:
44 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData); 55 DISALLOW_COPY_AND_ASSIGN(AutocheckoutPageMetaData);
45 }; 56 };
46 57
47 } // namespace autofill 58 } // namespace autofill
48 59
49 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_ 60 #endif // COMPONENTS_AUTOFILL_BROWSER_AUTOCHECKOUT_PAGE_META_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/browser/autofill_xml_parser.h » ('j') | components/autofill/browser/autofill_xml_parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698