| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
| 7 |
| 8 #include "components/omnibox/browser/autocomplete_match_type.h" |
| 9 #include "components/security_state/security_state_model.h" |
| 10 |
| 11 // Converts |type| to a resource identifier for the appropriate icon for this |
| 12 // type to show in the omnibox. |
| 13 int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type, |
| 14 bool is_starred, |
| 15 bool is_incognito); |
| 16 |
| 17 // Converts |security_level| to a resource identifier for the appropriate icon |
| 18 // for this security level in the omnibox. |
| 19 int GetIconForSecurityState( |
| 20 security_state::SecurityStateModel::SecurityLevel security_level); |
| 21 |
| 22 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
| OLD | NEW |