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

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

Issue 2665433002: [Merge M57] Use uniform margin for icon, label and sublabel (Closed)
Patch Set: 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 290
291 unsigned int AutofillPopupLayoutModel::GetDropdownItemHeight() const { 291 unsigned int AutofillPopupLayoutModel::GetDropdownItemHeight() const {
292 return GetPopupDropdownItemHeight(); 292 return GetPopupDropdownItemHeight();
293 } 293 }
294 294
295 bool AutofillPopupLayoutModel::IsIconAtStart(int frontend_id) const { 295 bool AutofillPopupLayoutModel::IsIconAtStart(int frontend_id) const {
296 return frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE || 296 return frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE ||
297 (is_credit_card_popup_ && IsIconInCreditCardPopupAtStart()); 297 (is_credit_card_popup_ && IsIconInCreditCardPopupAtStart());
298 } 298 }
299 299
300 unsigned int AutofillPopupLayoutModel::GetMargin() const {
301 return GetPopupMargin();
302 }
303
300 } // namespace autofill 304 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698