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

Side by Side Diff: components/autofill/content/common/autofill_messages.h

Issue 1474973002: Remove WebElementDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix BUILD files Created 5 years 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
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/renderer/autofill_agent.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Multiply-included message file, hence no include guard. 5 // Multiply-included message file, hence no include guard.
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/time/time.h" 11 #include "base/time/time.h"
12 #include "components/autofill/content/common/autofill_param_traits_macros.h" 12 #include "components/autofill/content/common/autofill_param_traits_macros.h"
13 #include "components/autofill/core/common/form_data.h" 13 #include "components/autofill/core/common/form_data.h"
14 #include "components/autofill/core/common/form_data_predictions.h" 14 #include "components/autofill/core/common/form_data_predictions.h"
15 #include "components/autofill/core/common/form_field_data.h" 15 #include "components/autofill/core/common/form_field_data.h"
16 #include "components/autofill/core/common/form_field_data_predictions.h" 16 #include "components/autofill/core/common/form_field_data_predictions.h"
17 #include "components/autofill/core/common/password_form.h" 17 #include "components/autofill/core/common/password_form.h"
18 #include "components/autofill/core/common/password_form_field_prediction_map.h" 18 #include "components/autofill/core/common/password_form_field_prediction_map.h"
19 #include "components/autofill/core/common/password_form_fill_data.h" 19 #include "components/autofill/core/common/password_form_fill_data.h"
20 #include "components/autofill/core/common/web_element_descriptor.h"
21 #include "content/public/common/common_param_traits.h" 20 #include "content/public/common/common_param_traits.h"
22 #include "content/public/common/common_param_traits_macros.h" 21 #include "content/public/common/common_param_traits_macros.h"
23 #include "ipc/ipc_message_macros.h" 22 #include "ipc/ipc_message_macros.h"
24 #include "ipc/ipc_message_utils.h" 23 #include "ipc/ipc_message_utils.h"
25 #include "third_party/WebKit/public/web/WebFormElement.h" 24 #include "third_party/WebKit/public/web/WebFormElement.h"
26 #include "ui/gfx/geometry/rect_f.h" 25 #include "ui/gfx/geometry/rect_f.h"
27 #include "ui/gfx/ipc/gfx_param_traits.h" 26 #include "ui/gfx/ipc/gfx_param_traits.h"
28 #include "url/gurl.h" 27 #include "url/gurl.h"
29 28
30 #define IPC_MESSAGE_START AutofillMsgStart 29 #define IPC_MESSAGE_START AutofillMsgStart
31 30
32 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, 31 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute,
33 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) 32 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER)
34 33
35 IPC_ENUM_TRAITS_MAX_VALUE( 34 IPC_ENUM_TRAITS_MAX_VALUE(
36 autofill::PasswordFormFieldPredictionType, 35 autofill::PasswordFormFieldPredictionType,
37 autofill::PasswordFormFieldPredictionType::PREDICTION_MAX) 36 autofill::PasswordFormFieldPredictionType::PREDICTION_MAX)
38 37
39 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, 38 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection,
40 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) 39 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1)
41 40
42 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor)
43 IPC_STRUCT_TRAITS_MEMBER(descriptor)
44 IPC_STRUCT_TRAITS_MEMBER(retrieval_method)
45 IPC_STRUCT_TRAITS_END()
46
47 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod,
48 autofill::WebElementDescriptor::NONE)
49
50 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) 41 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData)
51 IPC_STRUCT_TRAITS_MEMBER(label) 42 IPC_STRUCT_TRAITS_MEMBER(label)
52 IPC_STRUCT_TRAITS_MEMBER(name) 43 IPC_STRUCT_TRAITS_MEMBER(name)
53 IPC_STRUCT_TRAITS_MEMBER(value) 44 IPC_STRUCT_TRAITS_MEMBER(value)
54 IPC_STRUCT_TRAITS_MEMBER(form_control_type) 45 IPC_STRUCT_TRAITS_MEMBER(form_control_type)
55 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) 46 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute)
56 IPC_STRUCT_TRAITS_MEMBER(role) 47 IPC_STRUCT_TRAITS_MEMBER(role)
57 IPC_STRUCT_TRAITS_MEMBER(max_length) 48 IPC_STRUCT_TRAITS_MEMBER(max_length)
58 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) 49 IPC_STRUCT_TRAITS_MEMBER(is_autofilled)
59 IPC_STRUCT_TRAITS_MEMBER(is_checked) 50 IPC_STRUCT_TRAITS_MEMBER(is_checked)
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Inform browser of data list values for the curent field. 337 // Inform browser of data list values for the curent field.
347 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, 338 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList,
348 std::vector<base::string16> /* values */, 339 std::vector<base::string16> /* values */,
349 std::vector<base::string16> /* labels */) 340 std::vector<base::string16> /* labels */)
350 341
351 // Inform the browser which password form is currently focused, as a response 342 // Inform the browser which password form is currently focused, as a response
352 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form 343 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form
353 // is focused, the response will contain an empty |autofill::PasswordForm|. 344 // is focused, the response will contain an empty |autofill::PasswordForm|.
354 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, 345 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound,
355 autofill::PasswordForm) 346 autofill::PasswordForm)
OLDNEW
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/renderer/autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698