| 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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ | 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ |
| 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ | 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual base::string16 GetSecureVerboseText() const = 0; | 53 virtual base::string16 GetSecureVerboseText() const = 0; |
| 54 | 54 |
| 55 // Returns the name of the EV cert holder. This returns an empty string if | 55 // Returns the name of the EV cert holder. This returns an empty string if |
| 56 // the security level is not EV_SECURE. | 56 // the security level is not EV_SECURE. |
| 57 virtual base::string16 GetEVCertName() const = 0; | 57 virtual base::string16 GetEVCertName() const = 0; |
| 58 | 58 |
| 59 // Returns whether the URL for the current navigation entry should be | 59 // Returns whether the URL for the current navigation entry should be |
| 60 // in the location bar. | 60 // in the location bar. |
| 61 virtual bool ShouldDisplayURL() const = 0; | 61 virtual bool ShouldDisplayURL() const = 0; |
| 62 | 62 |
| 63 // Returns whether the page is an offline page, sourced from a cache of |
| 64 // previously-downloaded content. |
| 65 virtual bool IsOfflinePage() const = 0; |
| 66 |
| 63 // Whether the text in the omnibox is currently being edited. | 67 // Whether the text in the omnibox is currently being edited. |
| 64 void set_input_in_progress(bool input_in_progress) { | 68 void set_input_in_progress(bool input_in_progress) { |
| 65 input_in_progress_ = input_in_progress; | 69 input_in_progress_ = input_in_progress; |
| 66 } | 70 } |
| 67 bool input_in_progress() const { return input_in_progress_; } | 71 bool input_in_progress() const { return input_in_progress_; } |
| 68 | 72 |
| 69 protected: | 73 protected: |
| 70 ToolbarModel() : input_in_progress_(false) {} | 74 ToolbarModel() : input_in_progress_(false) {} |
| 71 | 75 |
| 72 private: | 76 private: |
| 73 bool input_in_progress_; | 77 bool input_in_progress_; |
| 74 | 78 |
| 75 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); | 79 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ | 82 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ |
| OLD | NEW |