Chromium Code Reviews| 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 // Returns true when the URL host for the current navigation entry should | |
| 74 // NOT be emphasized in the location bar. | |
|
Devlin
2013/03/27 15:59:52
You should emphasize that this is just a handle to
Patrick Riordan
2013/03/27 19:43:28
Done.
| |
| 75 virtual bool ShouldNotEmphasizeHost() const = 0; | |
| 76 | |
| 73 // Getter/setter of whether the text in location bar is currently being | 77 // Getter/setter of whether the text in location bar is currently being |
| 74 // edited. | 78 // edited. |
| 75 virtual void SetInputInProgress(bool value) = 0; | 79 virtual void SetInputInProgress(bool value) = 0; |
| 76 virtual bool GetInputInProgress() const = 0; | 80 virtual bool GetInputInProgress() const = 0; |
| 77 | 81 |
| 78 protected: | 82 protected: |
| 79 ToolbarModel() {} | 83 ToolbarModel() {} |
| 80 }; | 84 }; |
| 81 | 85 |
| 82 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ | 86 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_H_ |
| OLD | NEW |