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

Unified Diff: components/omnibox/browser/omnibox_view.h

Issue 2031813002: alternative to https://codereview.chromium.org/2028933002/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « components/omnibox/browser/DEPS ('k') | components/omnibox/browser/omnibox_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/omnibox_view.h
diff --git a/components/omnibox/browser/omnibox_view.h b/components/omnibox/browser/omnibox_view.h
index 462070f53bbace1d8ba5d7db571c993bc5c9d973..81149a9fa246d004b50128c183f7988ccaca6470 100644
--- a/components/omnibox/browser/omnibox_view.h
+++ b/components/omnibox/browser/omnibox_view.h
@@ -22,6 +22,7 @@
#include "base/strings/utf_string_conversions.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/omnibox_edit_model.h"
+#include "components/security_state/security_state_model.h"
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/native_widget_types.h"
@@ -71,6 +72,12 @@ class OmniboxView {
// browser, or just whatever the user has currently typed.
virtual base::string16 GetText() const = 0;
+ // Returns the security level to display in the omnibox. This aligns with the
+ // toolbar model's notion of security but overrides it if the input is
+ // editing or empty.
+ security_state::SecurityStateModel::SecurityLevel GetSecurityLevelForDisplay()
+ const;
+
// |true| if the user is in the process of editing the field, or if
// the field is empty.
bool IsEditingOrEmpty() const;
« no previous file with comments | « components/omnibox/browser/DEPS ('k') | components/omnibox/browser/omnibox_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698