| 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 // 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 | 8 |
| 9 #include "base/time.h" | 9 #include "base/time.h" |
| 10 #include "components/autofill/common/autocheckout_status.h" | 10 #include "components/autofill/common/autocheckout_status.h" |
| 11 #include "components/autofill/common/form_data.h" | 11 #include "components/autofill/common/form_data.h" |
| 12 #include "components/autofill/common/form_data_predictions.h" | 12 #include "components/autofill/common/form_data_predictions.h" |
| 13 #include "components/autofill/common/form_field_data.h" | 13 #include "components/autofill/common/form_field_data.h" |
| 14 #include "components/autofill/common/form_field_data_predictions.h" | 14 #include "components/autofill/common/form_field_data_predictions.h" |
| 15 #include "components/autofill/common/forms_seen_state.h" | 15 #include "components/autofill/common/forms_seen_state.h" |
| 16 #include "components/autofill/common/password_form_fill_data.h" | 16 #include "components/autofill/common/password_form_fill_data.h" |
| 17 #include "components/autofill/common/web_element_descriptor.h" | 17 #include "components/autofill/common/web_element_descriptor.h" |
| 18 #include "content/public/common/common_param_traits.h" | 18 #include "content/public/common/common_param_traits.h" |
| 19 #include "content/public/common/common_param_traits_macros.h" | 19 #include "content/public/common/common_param_traits_macros.h" |
| 20 #include "content/public/common/password_form.h" | 20 #include "content/public/common/password_form.h" |
| 21 #include "content/public/common/ssl_status.h" | 21 #include "content/public/common/ssl_status.h" |
| 22 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
| 24 #include "ipc/ipc_message_utils.h" | 24 #include "ipc/ipc_message_utils.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFormElement.h" |
| 26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
| 27 | 27 |
| 28 #define IPC_MESSAGE_START AutofillMsgStart | 28 #define IPC_MESSAGE_START AutofillMsgStart |
| 29 | 29 |
| 30 IPC_ENUM_TRAITS(autofill::AutocheckoutStatus) | 30 IPC_ENUM_TRAITS_MAX_VALUE(autofill::AutocheckoutStatus, |
| 31 IPC_ENUM_TRAITS(autofill::FormsSeenState) | 31 autofill::AUTOCHECKOUT_STATUS_NUM_STATUS - 1) |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState, |
| 33 autofill::FORMS_SEEN_STATE_NUM_STATES - 1) |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, |
| 35 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) |
| 32 | 36 |
| 33 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) | 37 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) |
| 34 IPC_STRUCT_TRAITS_MEMBER(descriptor) | 38 IPC_STRUCT_TRAITS_MEMBER(descriptor) |
| 35 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) | 39 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) |
| 36 IPC_STRUCT_TRAITS_END() | 40 IPC_STRUCT_TRAITS_END() |
| 37 | 41 |
| 38 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod) | 42 IPC_ENUM_TRAITS(autofill::WebElementDescriptor::RetrievalMethod) |
| 39 | 43 |
| 40 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) | 44 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) |
| 41 IPC_STRUCT_TRAITS_MEMBER(label) | 45 IPC_STRUCT_TRAITS_MEMBER(label) |
| 42 IPC_STRUCT_TRAITS_MEMBER(name) | 46 IPC_STRUCT_TRAITS_MEMBER(name) |
| 43 IPC_STRUCT_TRAITS_MEMBER(value) | 47 IPC_STRUCT_TRAITS_MEMBER(value) |
| 44 IPC_STRUCT_TRAITS_MEMBER(form_control_type) | 48 IPC_STRUCT_TRAITS_MEMBER(form_control_type) |
| 45 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) | 49 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) |
| 46 IPC_STRUCT_TRAITS_MEMBER(max_length) | 50 IPC_STRUCT_TRAITS_MEMBER(max_length) |
| 47 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) | 51 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) |
| 48 IPC_STRUCT_TRAITS_MEMBER(is_checked) | 52 IPC_STRUCT_TRAITS_MEMBER(is_checked) |
| 49 IPC_STRUCT_TRAITS_MEMBER(is_checkable) | 53 IPC_STRUCT_TRAITS_MEMBER(is_checkable) |
| 50 IPC_STRUCT_TRAITS_MEMBER(is_focusable) | 54 IPC_STRUCT_TRAITS_MEMBER(is_focusable) |
| 51 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) | 55 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) |
| 56 IPC_STRUCT_TRAITS_MEMBER(text_direction) |
| 52 IPC_STRUCT_TRAITS_MEMBER(option_values) | 57 IPC_STRUCT_TRAITS_MEMBER(option_values) |
| 53 IPC_STRUCT_TRAITS_MEMBER(option_contents) | 58 IPC_STRUCT_TRAITS_MEMBER(option_contents) |
| 54 IPC_STRUCT_TRAITS_END() | 59 IPC_STRUCT_TRAITS_END() |
| 55 | 60 |
| 56 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldDataPredictions) | 61 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldDataPredictions) |
| 57 IPC_STRUCT_TRAITS_MEMBER(field) | 62 IPC_STRUCT_TRAITS_MEMBER(field) |
| 58 IPC_STRUCT_TRAITS_MEMBER(signature) | 63 IPC_STRUCT_TRAITS_MEMBER(signature) |
| 59 IPC_STRUCT_TRAITS_MEMBER(heuristic_type) | 64 IPC_STRUCT_TRAITS_MEMBER(heuristic_type) |
| 60 IPC_STRUCT_TRAITS_MEMBER(server_type) | 65 IPC_STRUCT_TRAITS_MEMBER(server_type) |
| 61 IPC_STRUCT_TRAITS_MEMBER(overall_type) | 66 IPC_STRUCT_TRAITS_MEMBER(overall_type) |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 autofill::FormFieldData /* the form field */, | 298 autofill::FormFieldData /* the form field */, |
| 294 gfx::RectF /* input field bounds, window-relative */, | 299 gfx::RectF /* input field bounds, window-relative */, |
| 295 std::vector<base::string16> /* suggestions */) | 300 std::vector<base::string16> /* suggestions */) |
| 296 | 301 |
| 297 // Inform browser of data list values for the curent field. | 302 // Inform browser of data list values for the curent field. |
| 298 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, | 303 IPC_MESSAGE_ROUTED4(AutofillHostMsg_SetDataList, |
| 299 std::vector<base::string16> /* values */, | 304 std::vector<base::string16> /* values */, |
| 300 std::vector<base::string16> /* labels */, | 305 std::vector<base::string16> /* labels */, |
| 301 std::vector<base::string16> /* icons */, | 306 std::vector<base::string16> /* icons */, |
| 302 std::vector<int> /* unique ids */) | 307 std::vector<int> /* unique ids */) |
| OLD | NEW |