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

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

Issue 134013004: [OriginChip] Add options for the position of the origin chip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 f76635bc2926f303538fdb3d40f8e9b43177f88d..7102d10b0d5eaaa73769810cfec4c3df38a843ae 100644
--- a/chrome/browser/search/search.h
+++ b/chrome/browser/search/search.h
@@ -48,6 +48,14 @@ enum DisplaySearchButtonConditions {
DISPLAY_SEARCH_BUTTON_NUM_VALUES,
};
+enum OriginChipPosition {
+ ORIGIN_CHIP_DISABLED,
+ ORIGIN_CHIP_LEFT_OF_LOCATION_BAR,
+ ORIGIN_CHIP_RIGHT_OF_LOCATION_BAR,
+ ORIGIN_CHIP_LEFT_OF_MENU,
+ ORIGIN_CHIP_NUM_VALUES,
+};
+
// Use this value for "start margin" to prevent the "es_sm" parameter from
// being used.
extern const int kDisableStartMargin;
@@ -159,10 +167,14 @@ bool ShouldShowInstantNTP();
// ToolbarModel::WouldPerformSearchTermReplacement().
DisplaySearchButtonConditions GetDisplaySearchButtonConditions();
-// Returns true if the origin chip should be shown next to the omnibox. This
+// Returns true if the origin chip should be shown in the toolbar. This
// also includes the related changes to the omnibox.
bool ShouldDisplayOriginChip();
+// Returns a value indicating where the origin chip should be positioned on the
+// toolbar.
+OriginChipPosition GetOriginChipPosition();
+
// Transforms the input |url| into its "effective URL". The returned URL
// facilitates grouping process-per-site. The |url| is transformed, for
// example, from

Powered by Google App Engine
This is Rietveld 408576698