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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 32463003: Modify hit test masks for tabs and tab close buttons (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: HitTestSource moved Created 7 years, 2 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: chrome/browser/ui/views/tabs/tab_strip.cc
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
index 0e3ac65f49e1a7de2d7780215bc68c660cfabca1..259f86bfcdcd69e5883f0aca2f0a61342d9f83e4 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -309,7 +309,8 @@ class NewTabButton : public views::ImageButton {
protected:
// Overridden from views::View:
virtual bool HasHitTestMask() const OVERRIDE;
- virtual void GetHitTestMask(gfx::Path* path) const OVERRIDE;
+ virtual void GetHitTestMask(views::HitTestSource source,
+ gfx::Path* path) const OVERRIDE;
#if defined(OS_WIN)
virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
#endif
@@ -356,7 +357,8 @@ bool NewTabButton::HasHitTestMask() const {
return !tab_strip_->SizeTabButtonToTopOfTabStrip();
}
-void NewTabButton::GetHitTestMask(gfx::Path* path) const {
+void NewTabButton::GetHitTestMask(views::HitTestSource source,
+ gfx::Path* path) const {
DCHECK(path);
SkScalar w = SkIntToScalar(width());

Powered by Google App Engine
This is Rietveld 408576698