OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" | 5 #include "chrome/browser/ui/android/autofill/autofill_dialog_view_android.h" |
| 6 |
6 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
7 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
8 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
9 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
10 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/ui/android/window_android_helper.h" | 13 #include "chrome/browser/ui/android/window_android_helper.h" |
13 #include "chrome/browser/ui/autofill/data_model_wrapper.h" | 14 #include "chrome/browser/ui/autofill/data_model_wrapper.h" |
14 #include "components/autofill/browser/autofill_profile.h" | 15 #include "components/autofill/core/browser/autofill_profile.h" |
15 #include "components/autofill/browser/autofill_type.h" | 16 #include "components/autofill/core/browser/autofill_type.h" |
16 #include "components/autofill/browser/credit_card.h" | 17 #include "components/autofill/core/browser/credit_card.h" |
17 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
18 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
19 #include "jni/AutofillDialogGlue_jni.h" | 20 #include "jni/AutofillDialogGlue_jni.h" |
20 #include "ui/android/window_android.h" | 21 #include "ui/android/window_android.h" |
21 #include "ui/base/l10n/l10n_util.h" | 22 #include "ui/base/l10n/l10n_util.h" |
22 #include "ui/base/models/combobox_model.h" | 23 #include "ui/base/models/combobox_model.h" |
23 #include "ui/base/models/menu_model.h" | 24 #include "ui/base/models/menu_model.h" |
24 #include "ui/gfx/android/java_bitmap.h" | 25 #include "ui/gfx/android/java_bitmap.h" |
25 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
26 | 27 |
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
855 | 856 |
856 if (label.empty()) | 857 if (label.empty()) |
857 return false; | 858 return false; |
858 | 859 |
859 *label_to_set = label; | 860 *label_to_set = label; |
860 *sublabel_to_set = sublabel; | 861 *sublabel_to_set = sublabel; |
861 *icon_to_set = icon; | 862 *icon_to_set = icon; |
862 return true; | 863 return true; |
863 } | 864 } |
864 } // namespace autofill | 865 } // namespace autofill |
OLD | NEW |