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

Side by Side Diff: components/security_state/core/security_state_ui.h

Issue 2574733003: Introduce security_state::ShouldAlwaysShowIcon() for mobile omnibox calculations. (Closed)
Patch Set: Fix code and add comment. Created 4 years 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
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 COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
7
8 #include "components/security_state/core/security_state.h"
9
10 // Provides helper methods that encapsulate platform-independent security UI
11 // logic.
12 namespace security_state {
13
14 // On some (mobile) form factors, the security indicator icon is hidden to save
15 // UI space. This returns whether the icon should always be shown for the given
16 // |security_level|, i.e. whether to override the hiding behaviour.
17 bool ShouldAlwaysShowIcon(SecurityLevel security_level);
18
19 } // namespace security_state
20
21 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_UI_H_
OLDNEW
« no previous file with comments | « components/security_state/core/BUILD.gn ('k') | components/security_state/core/security_state_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698