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

Side by Side Diff: chrome/browser/ui/autofill/autofill_popup_layout_model.cc

Issue 2649623002: [Autofill] Uses uniform margin for icon, label and sublabel in popup (Closed)
Patch Set: Moves label margin calculation to constructor. Created 3 years, 10 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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/autofill/autofill_popup_layout_model.h" 5 #include "chrome/browser/ui/autofill/autofill_popup_layout_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 unsigned int AutofillPopupLayoutModel::GetDropdownItemHeight() const { 294 unsigned int AutofillPopupLayoutModel::GetDropdownItemHeight() const {
295 return GetPopupDropdownItemHeight(); 295 return GetPopupDropdownItemHeight();
296 } 296 }
297 297
298 bool AutofillPopupLayoutModel::IsIconAtStart(int frontend_id) const { 298 bool AutofillPopupLayoutModel::IsIconAtStart(int frontend_id) const {
299 return frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE || 299 return frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE ||
300 (is_credit_card_popup_ && IsIconInCreditCardPopupAtStart()); 300 (is_credit_card_popup_ && IsIconInCreditCardPopupAtStart());
301 } 301 }
302 302
303 unsigned int AutofillPopupLayoutModel::GetMargin() const {
304 return GetPopupMargin();
305 }
306
303 } // namespace autofill 307 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698