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

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

Issue 1354823002: Render the tab close button as a vector-based icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')
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 c489362579855c14b2e33e36d4b943fcfe84cc55..23d2a578bb56c5739288e25a7a2b585842b0858b 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -196,6 +196,8 @@ class Tab : public gfx::AnimationDelegate,
bool GetHitTestMask(gfx::Path* mask) const override;
// views::View:
+ void ViewHierarchyChanged(
+ const ViewHierarchyChangedDetails& details) override;
void OnPaint(gfx::Canvas* canvas) override;
void Layout() override;
void OnThemeChanged() override;
@@ -279,6 +281,11 @@ class Tab : public gfx::AnimationDelegate,
// Returns true if the crash animation is currently running.
bool IsPerformingCrashAnimation() const;
+ // Calculates the correct |close_button_color_| and sets the close button
+ // normal-state image. This should be called any time the theme or active
+ // state may have changed.
+ void SetCloseButtonNormalStateImage();
+
// Schedules repaint task for icon.
void ScheduleIconPaint();
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698