| OLD | NEW |
| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "content/public/common/common_param_traits_macros.h" | 21 #include "content/public/common/common_param_traits_macros.h" |
| 22 #include "ipc/ipc_message_macros.h" | 22 #include "ipc/ipc_message_macros.h" |
| 23 #include "ipc/ipc_message_utils.h" | 23 #include "ipc/ipc_message_utils.h" |
| 24 #include "third_party/WebKit/public/web/WebFormElement.h" | 24 #include "third_party/WebKit/public/web/WebFormElement.h" |
| 25 #include "ui/gfx/ipc/gfx_param_traits.h" | 25 #include "ui/gfx/ipc/gfx_param_traits.h" |
| 26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
| 27 #include "url/gurl.h" | 27 #include "url/gurl.h" |
| 28 | 28 |
| 29 #define IPC_MESSAGE_START AutofillMsgStart | 29 #define IPC_MESSAGE_START AutofillMsgStart |
| 30 | 30 |
| 31 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, |
| 32 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) |
| 33 |
| 31 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, | 34 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection, |
| 32 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) | 35 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1) |
| 33 | 36 |
| 34 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) | 37 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor) |
| 35 IPC_STRUCT_TRAITS_MEMBER(descriptor) | 38 IPC_STRUCT_TRAITS_MEMBER(descriptor) |
| 36 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) | 39 IPC_STRUCT_TRAITS_MEMBER(retrieval_method) |
| 37 IPC_STRUCT_TRAITS_END() | 40 IPC_STRUCT_TRAITS_END() |
| 38 | 41 |
| 39 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod, | 42 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod, |
| 40 autofill::WebElementDescriptor::NONE) | 43 autofill::WebElementDescriptor::NONE) |
| 41 | 44 |
| 42 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) | 45 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData) |
| 43 IPC_STRUCT_TRAITS_MEMBER(label) | 46 IPC_STRUCT_TRAITS_MEMBER(label) |
| 44 IPC_STRUCT_TRAITS_MEMBER(name) | 47 IPC_STRUCT_TRAITS_MEMBER(name) |
| 45 IPC_STRUCT_TRAITS_MEMBER(value) | 48 IPC_STRUCT_TRAITS_MEMBER(value) |
| 46 IPC_STRUCT_TRAITS_MEMBER(form_control_type) | 49 IPC_STRUCT_TRAITS_MEMBER(form_control_type) |
| 47 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) | 50 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute) |
| 51 IPC_STRUCT_TRAITS_MEMBER(role) |
| 48 IPC_STRUCT_TRAITS_MEMBER(max_length) | 52 IPC_STRUCT_TRAITS_MEMBER(max_length) |
| 49 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) | 53 IPC_STRUCT_TRAITS_MEMBER(is_autofilled) |
| 50 IPC_STRUCT_TRAITS_MEMBER(is_checked) | 54 IPC_STRUCT_TRAITS_MEMBER(is_checked) |
| 51 IPC_STRUCT_TRAITS_MEMBER(is_checkable) | 55 IPC_STRUCT_TRAITS_MEMBER(is_checkable) |
| 52 IPC_STRUCT_TRAITS_MEMBER(is_focusable) | 56 IPC_STRUCT_TRAITS_MEMBER(is_focusable) |
| 53 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) | 57 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete) |
| 54 IPC_STRUCT_TRAITS_MEMBER(text_direction) | 58 IPC_STRUCT_TRAITS_MEMBER(text_direction) |
| 55 IPC_STRUCT_TRAITS_MEMBER(option_values) | 59 IPC_STRUCT_TRAITS_MEMBER(option_values) |
| 56 IPC_STRUCT_TRAITS_MEMBER(option_contents) | 60 IPC_STRUCT_TRAITS_MEMBER(option_contents) |
| 57 IPC_STRUCT_TRAITS_END() | 61 IPC_STRUCT_TRAITS_END() |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 int /* key */, | 306 int /* key */, |
| 303 base::i18n::TextDirection /*text_direction */, | 307 base::i18n::TextDirection /*text_direction */, |
| 304 base::string16 /* username typed by user */, | 308 base::string16 /* username typed by user */, |
| 305 bool /* show all suggestions */, | 309 bool /* show all suggestions */, |
| 306 gfx::RectF /* input field bounds, window-relative */) | 310 gfx::RectF /* input field bounds, window-relative */) |
| 307 | 311 |
| 308 // Inform browser of data list values for the curent field. | 312 // Inform browser of data list values for the curent field. |
| 309 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 313 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
| 310 std::vector<base::string16> /* values */, | 314 std::vector<base::string16> /* values */, |
| 311 std::vector<base::string16> /* labels */) | 315 std::vector<base::string16> /* labels */) |
| OLD | NEW |