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

Side by Side Diff: components/toolbar/toolbar_model_delegate.h

Issue 2644903004: Move around more vector icons. (Closed)
Patch Set: fix comment Created 3 years, 11 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 | « components/toolbar/toolbar_model.h ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/security_state/core/security_state.h" 12 #include "components/security_state/core/security_state.h"
13 13
14 class GURL; 14 class GURL;
15 15
16 namespace gfx { 16 namespace gfx {
17 enum class VectorIconId; 17 struct VectorIcon;
18 } 18 }
19 19
20 namespace net { 20 namespace net {
21 class X509Certificate; 21 class X509Certificate;
22 } 22 }
23 23
24 // Delegate which is used by ToolbarModel class. 24 // Delegate which is used by ToolbarModel class.
25 class ToolbarModelDelegate { 25 class ToolbarModelDelegate {
26 public: 26 public:
27 using SecurityLevel = security_state::SecurityLevel; 27 using SecurityLevel = security_state::SecurityLevel;
(...skipping 19 matching lines...) Expand all
47 // Returns the certificate for the current navigation entry. 47 // Returns the certificate for the current navigation entry.
48 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0; 48 virtual scoped_refptr<net::X509Certificate> GetCertificate() const = 0;
49 49
50 // Returns true if the current page fails the malware check. 50 // Returns true if the current page fails the malware check.
51 virtual bool FailsMalwareCheck() const = 0; 51 virtual bool FailsMalwareCheck() const = 0;
52 52
53 // Returns the id of the icon to show to the left of the address, or 53 // Returns the id of the icon to show to the left of the address, or
54 // gfx::VectorIconId::VECTOR_ICON_NONE if the icon should be selected by the 54 // gfx::VectorIconId::VECTOR_ICON_NONE if the icon should be selected by the
55 // caller. This is useful for associating particular URLs with particular 55 // caller. This is useful for associating particular URLs with particular
56 // schemes without importing knowledge of those schemes into this component. 56 // schemes without importing knowledge of those schemes into this component.
57 virtual gfx::VectorIconId GetVectorIconOverride() const = 0; 57 virtual const gfx::VectorIcon* GetVectorIconOverride() const = 0;
58 58
59 protected: 59 protected:
60 virtual ~ToolbarModelDelegate() {} 60 virtual ~ToolbarModelDelegate() {}
61 }; 61 };
62 62
63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_ 63 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_DELEGATE_H_
OLDNEW
« no previous file with comments | « components/toolbar/toolbar_model.h ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698