OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ | 6 #define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
7 | 7 |
8 #include "components/omnibox/browser/autocomplete_match_type.h" | 8 #include "components/omnibox/browser/autocomplete_match_type.h" |
9 #include "components/security_state/security_state_model.h" | 9 #include "components/security_state/core/security_state_model.h" |
10 | 10 |
11 // Converts |type| to a resource identifier for the appropriate icon for this | 11 // Converts |type| to a resource identifier for the appropriate icon for this |
12 // type to show in the omnibox. | 12 // type to show in the omnibox. |
13 int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type, | 13 int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type, |
14 bool is_starred, | 14 bool is_starred, |
15 bool is_incognito); | 15 bool is_incognito); |
16 | 16 |
17 // Converts |security_level| to a resource identifier for the appropriate icon | 17 // Converts |security_level| to a resource identifier for the appropriate icon |
18 // for this security level in the omnibox. | 18 // for this security level in the omnibox. |
19 int GetIconForSecurityState( | 19 int GetIconForSecurityState( |
20 security_state::SecurityStateModel::SecurityLevel security_level); | 20 security_state::SecurityStateModel::SecurityLevel security_level); |
21 | 21 |
22 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ | 22 #endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_ |
OLD | NEW |