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 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" | 5 #include "chrome/browser/ui/android/autofill/autofill_popup_view_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_string.h" | 8 #include "base/android/jni_string.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/android/resource_mapper.h" | 10 #include "chrome/browser/android/resource_mapper.h" |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 // static | 177 // static |
178 bool AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid(JNIEnv* env) { | 178 bool AutofillPopupViewAndroid::RegisterAutofillPopupViewAndroid(JNIEnv* env) { |
179 return RegisterNativesImpl(env); | 179 return RegisterNativesImpl(env); |
180 } | 180 } |
181 | 181 |
182 // static | 182 // static |
183 AutofillPopupView* AutofillPopupView::Create( | 183 AutofillPopupView* AutofillPopupView::Create( |
184 AutofillPopupController* controller) { | 184 AutofillPopupController* controller) { |
185 if (IsKeyboardAccessoryEnabled()) | 185 if (IsKeyboardAccessoryEnabled()) |
186 return new AutofillKeyboardAccessoryView(controller); | 186 return new AutofillKeyboardAccessoryView( |
| 187 controller, GetKeyboardAccessoryAnimationDuration(), |
| 188 ShouldLimitKeyboardAccessorySuggestionLabelWidth()); |
187 | 189 |
188 return new AutofillPopupViewAndroid(controller); | 190 return new AutofillPopupViewAndroid(controller); |
189 } | 191 } |
190 | 192 |
191 } // namespace autofill | 193 } // namespace autofill |
OLD | NEW |