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

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

Issue 1401633003: Implement Material Design for the tabstrip. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync 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/views/frame/opaque_browser_frame_view.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 850a86412abc61ed317c8f61aa664bb1926508a1..726ca754f97742bb3aad510a5b66dc88927c73f9 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -51,6 +51,9 @@ class Tab : public gfx::AnimationDelegate,
// The Tab's class name.
static const char kViewClassName[];
+ // The color of an inactive tab.
+ static const SkColor kInactiveTabColor;
+
explicit Tab(TabController* controller);
~Tab() override;
@@ -298,6 +301,16 @@ class Tab : public gfx::AnimationDelegate,
// Schedules repaint task for icon.
void ScheduleIconPaint();
+ // Computes a path corresponding to the tab's content region inside the outer
+ // stroke.
+ void GetFillPath(float scale, SkPath* path) const;
+
+ // Computes a path corresponding to the tab's outer border for a given |scale|
+ // and stores it in |path|. If |extend_to_top| is true, the path is extended
+ // vertically to the top of the tab bounds. The caller uses this for Fitts'
+ // Law purposes in maximized/fullscreen mode.
+ void GetBorderPath(float scale, bool extend_to_top, SkPath* path) const;
+
// Returns the rectangle for the light bar in immersive mode.
gfx::Rect GetImmersiveBarRect() const;
« no previous file with comments | « chrome/browser/ui/views/frame/opaque_browser_frame_view.cc ('k') | chrome/browser/ui/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698