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

Unified Diff: ash/common/shelf/shelf_constants.h

Issue 2174643002: [ash-md] Updates ash shelf tooltips to MD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: ash/common/shelf/shelf_constants.h
diff --git a/ash/common/shelf/shelf_constants.h b/ash/common/shelf/shelf_constants.h
index 1e8c97e0196a7096301e845ee752cfd2d0c76c72..5173f7109871d0d574c113809ac6d72ce36f1e06 100644
--- a/ash/common/shelf/shelf_constants.h
+++ b/ash/common/shelf/shelf_constants.h
@@ -25,7 +25,25 @@ enum ShelfConstant {
SHELF_BUTTON_SIZE,
// Insets allocated for shelf when it is auto hidden.
- SHELF_INSETS_FOR_AUTO_HIDE
+ SHELF_INSETS_FOR_AUTO_HIDE,
+
+ // Shelf item tooltip height.
+ TOOLTIP_HEIGHT,
+
+ // The maximum width of the tooltip bubble. The value matches that from
+ // ash/tooltip/tooltip_controller.cc
+ TOOLTIP_MAX_WIDTH,
+
+ // Shelf item tooltip internal text margins.
+ TOOLTIP_TOP_BOTTOM_MARGIN,
+ TOOLTIP_LEFT_RIGHT_MARGIN,
+
+ // The offset for the tooltip bubble - making sure that the bubble is flush
+ // with the shelf (non-MD) or spaced with a fixed gap (MD). The offset
+ // includes the arrow size in pixels as well as the activation bar and other
+ // spacing elements.
+ TOOLTIP_ARROW_TOP_BOTTOM_OFFSET,
+ TOOLTIP_ARROW_LEFT_RIGHT_OFFSET,
};
// Invalid image resource id used for ShelfItemDetails.

Powered by Google App Engine
This is Rietveld 408576698