| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |