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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 1541313002: Material Hybrid mode for tabstrip. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new_layout_constants
Patch Set: Created 5 years 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
« no previous file with comments | « chrome/browser/ui/layout_constants.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index 726ca754f97742bb3aad510a5b66dc88927c73f9..0cccafc0e1085ae26e4fe9d460c936a7d992b47a 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -161,6 +161,15 @@ class Tab : public gfx::AnimationDelegate,
// toolbar images with custom themes.
static int GetYInsetForActiveTabBackground();
+ // Returns the inverse of the slope of the diagonal portion of the tab outer
+ // border. (This is a positive value, so it's specifically for the slope of
+ // the leading edge.)
+ //
+ // This returns the inverse (dx/dy instead of dy/dx) because we use exact
+ // values for the vertical distances between points and then compute the
+ // horizontal deltas from those.
+ static float GetInverseDiagonalSlope();
+
private:
friend class TabTest;
friend class TabStripTest;
« no previous file with comments | « chrome/browser/ui/layout_constants.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698