| 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |