OLD | NEW |
---|---|
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ |
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
63 virtual int GetIcon() const = 0; | 63 virtual int GetIcon() const = 0; |
64 | 64 |
65 // Returns the name of the EV cert holder. Only call this when the security | 65 // Returns the name of the EV cert holder. Only call this when the security |
66 // level is EV_SECURE. | 66 // level is EV_SECURE. |
67 virtual string16 GetEVCertName() const = 0; | 67 virtual string16 GetEVCertName() const = 0; |
68 | 68 |
69 // Returns whether the URL for the current navigation entry should be | 69 // Returns whether the URL for the current navigation entry should be |
70 // in the location bar. | 70 // in the location bar. |
71 virtual bool ShouldDisplayURL() const = 0; | 71 virtual bool ShouldDisplayURL() const = 0; |
72 | 72 |
73 // Queries the delegate WebContent's WebUI and returns true when the URL | |
74 // for the current navigation entry should be entirely greyed out in the | |
75 // location bar. | |
Peter Kasting
2013/04/03 22:32:13
Nit: The comment shouldn't be talking about implem
Patrick Riordan
2013/04/04 01:01:37
Done.
| |
76 virtual bool ShouldGreyOutURL() const = 0; | |
77 | |
73 // Getter/setter of whether the text in location bar is currently being | 78 // Getter/setter of whether the text in location bar is currently being |
74 // edited. | 79 // edited. |
75 virtual void SetInputInProgress(bool value) = 0; | 80 virtual void SetInputInProgress(bool value) = 0; |
76 virtual bool GetInputInProgress() const = 0; | 81 virtual bool GetInputInProgress() const = 0; |
77 | 82 |
78 protected: | 83 protected: |
79 ToolbarModel() {} | 84 ToolbarModel() {} |
80 }; | 85 }; |
81 | 86 |
82 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ | 87 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ |
OLD | NEW |