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 #include "components/autofill/content/renderer/form_cache.h" | 5 #include "components/autofill/content/renderer/form_cache.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "components/autofill/content/renderer/form_autofill_util.h" | 11 #include "components/autofill/content/renderer/form_autofill_util.h" |
12 #include "components/autofill/core/common/autofill_constants.h" | 12 #include "components/autofill/core/common/autofill_constants.h" |
13 #include "components/autofill/core/common/form_data_predictions.h" | 13 #include "components/autofill/core/common/form_data_predictions.h" |
14 #include "grit/components_strings.h" | 14 #include "components/strings/grit/components_strings.h" |
15 #include "third_party/WebKit/public/platform/WebString.h" | 15 #include "third_party/WebKit/public/platform/WebString.h" |
16 #include "third_party/WebKit/public/platform/WebVector.h" | 16 #include "third_party/WebKit/public/platform/WebVector.h" |
17 #include "third_party/WebKit/public/web/WebConsoleMessage.h" | 17 #include "third_party/WebKit/public/web/WebConsoleMessage.h" |
18 #include "third_party/WebKit/public/web/WebDocument.h" | 18 #include "third_party/WebKit/public/web/WebDocument.h" |
19 #include "third_party/WebKit/public/web/WebFormControlElement.h" | 19 #include "third_party/WebKit/public/web/WebFormControlElement.h" |
20 #include "third_party/WebKit/public/web/WebFormElement.h" | 20 #include "third_party/WebKit/public/web/WebFormElement.h" |
21 #include "third_party/WebKit/public/web/WebInputElement.h" | 21 #include "third_party/WebKit/public/web/WebInputElement.h" |
22 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 22 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
23 #include "third_party/WebKit/public/web/WebSelectElement.h" | 23 #include "third_party/WebKit/public/web/WebSelectElement.h" |
24 #include "ui/base/l10n/l10n_util.h" | 24 #include "ui/base/l10n/l10n_util.h" |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 const WebInputElement* input_element = toWebInputElement(&element); | 369 const WebInputElement* input_element = toWebInputElement(&element); |
370 if (form_util::IsCheckableElement(input_element)) { | 370 if (form_util::IsCheckableElement(input_element)) { |
371 initial_checked_state_.insert( | 371 initial_checked_state_.insert( |
372 std::make_pair(*input_element, input_element->isChecked())); | 372 std::make_pair(*input_element, input_element->isChecked())); |
373 } | 373 } |
374 } | 374 } |
375 } | 375 } |
376 } | 376 } |
377 | 377 |
378 } // namespace autofill | 378 } // namespace autofill |
OLD | NEW |