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

Side by Side Diff: ios/chrome/browser/ui/omnibox/omnibox_util.h

Issue 2417693003: Upstream utilities to select icon to display in omnibox. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « ios/chrome/browser/ui/omnibox/BUILD.gn ('k') | ios/chrome/browser/ui/omnibox/omnibox_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/omnibox/BUILD.gn ('k') | ios/chrome/browser/ui/omnibox/omnibox_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698