Index: chrome/browser/ui/omnibox/omnibox_edit_controller.h |
diff --git a/chrome/browser/ui/omnibox/omnibox_edit_controller.h b/chrome/browser/ui/omnibox/omnibox_edit_controller.h |
index 27572102a59db3e554c1e13fa36375b1a7e0384a..9b9f08e2f795f546d3a868c812bf0e547d895061 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_edit_controller.h |
+++ b/chrome/browser/ui/omnibox/omnibox_edit_controller.h |
@@ -44,6 +44,16 @@ class OmniboxEditController { |
// Called whenever the autocomplete edit gets focused. |
virtual void OnSetFocus() = 0; |
+ // Hides the origin chip and shows the URL. |
+ virtual void ShowURL() = 0; |
+ |
+ // Hides the origin chip while leaving the Omnibox empty. |
+ void HideOriginChip(); |
+ |
+ // Shows the origin chip. Hides the URL if it was previously shown by a call |
+ // to ShowURL(). |
+ void ShowOriginChip(); |
+ |
// Returns the InstantController, or NULL if instant is not enabled. |
virtual InstantController* GetInstant() = 0; |
@@ -57,6 +67,9 @@ class OmniboxEditController { |
explicit OmniboxEditController(CommandUpdater* command_updater); |
virtual ~OmniboxEditController(); |
+ // Hides the URL and shows the origin chip. |
+ virtual void HideURL() = 0; |
+ |
CommandUpdater* command_updater() { return command_updater_; } |
GURL destination_url() const { return destination_url_; } |
WindowOpenDisposition disposition() const { return disposition_; } |