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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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