| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual int GetIcon() const = 0; | 82 virtual int GetIcon() const = 0; |
| 83 | 83 |
| 84 // As |GetIcon()|, but returns the icon only taking into account the security | 84 // As |GetIcon()|, but returns the icon only taking into account the security |
| 85 // |level| given, ignoring search term replacement state. | 85 // |level| given, ignoring search term replacement state. |
| 86 virtual int GetIconForSecurityLevel(SecurityLevel level) const = 0; | 86 virtual int GetIconForSecurityLevel(SecurityLevel level) const = 0; |
| 87 | 87 |
| 88 // Returns the name of the EV cert holder. This returns an empty string if | 88 // Returns the name of the EV cert holder. This returns an empty string if |
| 89 // the security level is not EV_SECURE. | 89 // the security level is not EV_SECURE. |
| 90 virtual base::string16 GetEVCertName() const = 0; | 90 virtual base::string16 GetEVCertName() const = 0; |
| 91 | 91 |
| 92 // Returns the displayable name of the origin. |
| 93 virtual base::string16 GetOriginDisplayName() const = 0; |
| 94 |
| 92 // Returns whether the URL for the current navigation entry should be | 95 // Returns whether the URL for the current navigation entry should be |
| 93 // in the location bar. | 96 // in the location bar. |
| 94 virtual bool ShouldDisplayURL() const = 0; | 97 virtual bool ShouldDisplayURL() const = 0; |
| 95 | 98 |
| 96 // Returns true if a call to GetText() would return an empty string instead of | 99 // Returns true if a call to GetText() would return an empty string instead of |
| 97 // the URL that would have otherwise been displayed because the host/origin is | 100 // the URL that would have otherwise been displayed because the host/origin is |
| 98 // instead being displayed in the origin chip. This returns false when we | 101 // instead being displayed in the origin chip. This returns false when we |
| 99 // wouldn't have displayed a URL to begin with (e.g. for the NTP). | 102 // wouldn't have displayed a URL to begin with (e.g. for the NTP). |
| 100 virtual bool WouldOmitURLDueToOriginChip() const = 0; | 103 virtual bool WouldOmitURLDueToOriginChip() const = 0; |
| 101 | 104 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 130 | 133 |
| 131 private: | 134 private: |
| 132 bool input_in_progress_; | 135 bool input_in_progress_; |
| 133 bool origin_chip_enabled_; | 136 bool origin_chip_enabled_; |
| 134 bool url_replacement_enabled_; | 137 bool url_replacement_enabled_; |
| 135 | 138 |
| 136 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); | 139 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); |
| 137 }; | 140 }; |
| 138 | 141 |
| 139 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ | 142 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ |
| OLD | NEW |