| Index: ios/chrome/browser/ui/omnibox/omnibox_util.h
|
| diff --git a/ios/chrome/browser/ui/omnibox/omnibox_util.h b/ios/chrome/browser/ui/omnibox/omnibox_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..67cc3178270d9396675040e838ddd141a3182282
|
| --- /dev/null
|
| +++ b/ios/chrome/browser/ui/omnibox/omnibox_util.h
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
|
| +#define IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
|
| +
|
| +#include "components/omnibox/browser/autocomplete_match_type.h"
|
| +#include "components/security_state/security_state_model.h"
|
| +
|
| +// Converts |type| to a resource identifier for the appropriate icon for this
|
| +// type to show in the omnibox.
|
| +int GetIconForAutocompleteMatchType(AutocompleteMatchType::Type type,
|
| + bool is_starred,
|
| + bool is_incognito);
|
| +
|
| +// Converts |security_level| to a resource identifier for the appropriate icon
|
| +// for this security level in the omnibox.
|
| +int GetIconForSecurityState(
|
| + security_state::SecurityStateModel::SecurityLevel security_level);
|
| +
|
| +#endif // IOS_CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_UTIL_H_
|
|
|