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

Unified Diff: chrome/browser/search/search.h

Issue 287543002: Remove origin chip v1 and "hide on input" v2 behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test compile Created 6 years, 7 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/search/search.h
diff --git a/chrome/browser/search/search.h b/chrome/browser/search/search.h
index f5fa06cc18ffdd2977626ff0c83291118ef209c2..a799c61f886d43e6361764a18d126f9512b29605 100644
--- a/chrome/browser/search/search.h
+++ b/chrome/browser/search/search.h
@@ -48,22 +48,14 @@ enum DisplaySearchButtonConditions {
DISPLAY_SEARCH_BUTTON_NUM_VALUES,
};
-enum OriginChipPosition {
- ORIGIN_CHIP_DISABLED,
- ORIGIN_CHIP_LEADING_LOCATION_BAR,
- ORIGIN_CHIP_TRAILING_LOCATION_BAR,
- ORIGIN_CHIP_LEADING_MENU_BUTTON,
+enum OriginChipCondition {
+ ORIGIN_CHIP_DISABLED = 0,
+ ORIGIN_CHIP_ENABLED,
+ ORIGIN_CHIP_UNUSED_PLACEHOLDER, // In list to avoid changing fieldtrial vals
Justin Donnelly 2014/05/13 22:19:33 Per Alexei's comment, I think this is unnecessary.
Peter Kasting 2014/05/14 00:28:11 After some more discussions with David, I think I
Justin Donnelly 2014/05/14 16:31:43 I was concerned that we wouldn't be able to transp
+ ORIGIN_CHIP_ON_SRP,
ORIGIN_CHIP_NUM_VALUES,
};
-enum OriginChipV2Condition {
- ORIGIN_CHIP_V2_DISABLED,
- ORIGIN_CHIP_V2_HIDE_ON_MOUSE_RELEASE,
- ORIGIN_CHIP_V2_HIDE_ON_USER_INPUT,
- ORIGIN_CHIP_V2_ON_SRP,
- ORIGIN_CHIP_V2_NUM_VALUES,
-};
-
// Use this value for "start margin" to prevent the "es_sm" parameter from
// being used.
extern const int kDisableStartMargin;
@@ -194,24 +186,11 @@ bool ShouldHideTopVerbatimMatch();
// ToolbarModel::WouldPerformSearchTermReplacement().
DisplaySearchButtonConditions GetDisplaySearchButtonConditions();
-// Returns true if the origin chip should be shown in the toolbar. This
-// also includes the related changes to the omnibox. Always returns false if
-// ShouldDisplayOriginChipV2() returns true.
+// Returns true if the origin chip should be shown.
bool ShouldDisplayOriginChip();
-// Returns a value indicating where the origin chip should be positioned on the
-// toolbar.
-OriginChipPosition GetOriginChipPosition();
-
-// Returns true if version 2 of the origin chip should be shown. This version
-// places the origin chip inside the location bar instead of the toolbar and
-// adds show/hide behavior and animations to make the relationship between the
-// chip and the text in the Omnibox clearer.
-bool ShouldDisplayOriginChipV2();
-
-// Returns a value indicating what event should trigger hiding the origin chip
-// in the location bar.
-OriginChipV2Condition GetOriginChipV2Condition();
+// Returns a value indicating what event should trigger hiding the origin chip.
Justin Donnelly 2014/05/13 22:19:33 "What event should trigger hiding" is no longer ac
Peter Kasting 2014/05/14 00:28:11 Technically, it was already inaccurate before my c
Justin Donnelly 2014/05/14 16:31:43 Looks good to me. But now we'll need to update th
Peter Kasting 2014/05/14 22:55:34 Ah, good catch. Fixed.
+OriginChipCondition GetOriginChipCondition();
// Returns true if the local new tab page should show a Google logo and search
// box for users whose default search provider is Google, or false if not.

Powered by Google App Engine
This is Rietveld 408576698