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

Side by Side Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.cc

Issue 2874933008: Adds animation as feature variation to keyboard accessory. (Closed)
Patch Set: Switch to base/metrics/field_trial_params.h API from variations:: Created 3 years, 7 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698