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

Unified Diff: chrome/browser/ui/views/layout_constants.h

Issue 1403413006: Distill the concept of the "tab top exclusion region", an area inside the tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@combine_background_image_getters
Patch Set: Fix indenting error Created 5 years, 1 month 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/views/layout_constants.h
diff --git a/chrome/browser/ui/views/layout_constants.h b/chrome/browser/ui/views/layout_constants.h
index 57ec8cb3ee936f91884c11f731195769c9a4cc31..352a1e0d2e0a4435a1ec3bc98f0fc8239c366c7c 100644
--- a/chrome/browser/ui/views/layout_constants.h
+++ b/chrome/browser/ui/views/layout_constants.h
@@ -72,6 +72,13 @@ enum LayoutConstant {
// Width available for content inside a pinned tab.
TAB_PINNED_CONTENT_WIDTH,
+ // Height of the region atop the tab bounds that is normally excluded when
+ // calculating the tab hit test region or considering where to paint a
+ // custom theme background. (Based on theme behavior it seems like at some
+ // point this was added to the area above the top of the tab images, and we
+ // now need to subtract it back off to compensate.)
+ TAB_TOP_EXCLUSION_HEIGHT,
+
// Non-ash uses a rounded content area with no shadow in the assets.
// Ash doesn't use a rounded content area and its top edge has an extra
// shadow.
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc ('k') | chrome/browser/ui/views/layout_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698