Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: chrome/browser/ui/omnibox/omnibox_edit_controller.h

Issue 200783003: [OriginChip] Add animations for the hiding and showing of the chip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to comments, merge Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_; }

Powered by Google App Engine
This is Rietveld 408576698