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

Side by Side Diff: components/autofill/core/common/form_field_data.cc

Issue 2745803003: autofill-try
Patch Set: before I leave Created 3 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
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 #include "components/autofill/core/common/form_field_data.h" 5 #include "components/autofill/core/common/form_field_data.h"
6 6
7 #include "base/pickle.h" 7 #include "base/pickle.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "components/autofill/core/common/autofill_util.h" 10 #include "components/autofill/core/common/autofill_util.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 std::string role_str; 355 std::string role_str;
356 switch (field.role) { 356 switch (field.role) {
357 case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_PRESENTATION: 357 case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_PRESENTATION:
358 role_str = "ROLE_ATTRIBUTE_PRESENTATION"; 358 role_str = "ROLE_ATTRIBUTE_PRESENTATION";
359 break; 359 break;
360 case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_OTHER: 360 case FormFieldData::RoleAttribute::ROLE_ATTRIBUTE_OTHER:
361 role_str = "ROLE_ATTRIBUTE_OTHER"; 361 role_str = "ROLE_ATTRIBUTE_OTHER";
362 break; 362 break;
363 } 363 }
364 364
365 return os << base::UTF16ToUTF8(field.label) << " " 365 return os << base::UTF16ToUTF8(field.label) << "(label)" << " "
366 << base::UTF16ToUTF8(field.name) << " " 366 << base::UTF16ToUTF8(field.name) << "(name) "
367 << base::UTF16ToUTF8(field.id) << " " 367 << base::UTF16ToUTF8(field.id) << "(id) "
368 << base::UTF16ToUTF8(field.value) << " " << field.form_control_type 368 << base::UTF16ToUTF8(field.value) << "(value) " << field.form_contro l_type
369 << " " << field.autocomplete_attribute << " " << field.placeholder 369 << "(type) " << field.autocomplete_attribute << "(autocomplete) " << field.placeholder
370 << " " << field.max_length << " " << field.css_classes << " " 370 << "(placeholder) " << field.max_length << "(maxlen) " << field.css_ classes << "(css) "
371 << (field.is_autofilled ? "true" : "false") << " " 371 << (field.is_autofilled ? "true" : "false") << "(is_autofilled) "
372 << check_status_str << (field.is_focusable ? "true" : "false") 372 << check_status_str <<"(check_status_str)" << (field.is_focusable ? "true" : "false")
373 << " " << (field.should_autocomplete ? "true" : "false") << " " 373 << "(is_focusable) " << (field.should_autocomplete ? "true" : "false ") << "(should_autocomplete) "
374 << role_str << " " << field.text_direction << " " 374 << role_str << "(role_str) " << field.text_direction << "(text_dir) "
375 << field.properties_mask; 375 << field.properties_mask <<"(properties_mask) ";
376 } 376 }
377 377
378 } // namespace autofill 378 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698