| 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 25d37c979278ab46912364a900b4db929ce0e972..c9cc3dc6f8a9b1deb9671dd6b7637c5aa66af407 100644
|
| --- a/chrome/browser/ui/views/tabs/tab.h
|
| +++ b/chrome/browser/ui/views/tabs/tab.h
|
| @@ -17,6 +17,7 @@
|
| #include "ui/views/context_menu_controller.h"
|
| #include "ui/views/controls/button/button.h"
|
| #include "ui/views/controls/glow_hover_controller.h"
|
| +#include "ui/views/masked_targeter_delegate.h"
|
| #include "ui/views/view.h"
|
|
|
| class TabController;
|
| @@ -40,6 +41,7 @@ class Label;
|
| class Tab : public gfx::AnimationDelegate,
|
| public views::ButtonListener,
|
| public views::ContextMenuController,
|
| + public views::MaskedTargeterDelegate,
|
| public views::View {
|
| public:
|
| // The menu button's class name.
|
| @@ -163,28 +165,28 @@ class Tab : public gfx::AnimationDelegate,
|
|
|
| typedef std::list<ImageCacheEntry> ImageCache;
|
|
|
| - // Overridden from gfx::AnimationDelegate:
|
| + // gfx::AnimationDelegate:
|
| virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
|
| virtual void AnimationCanceled(const gfx::Animation* animation) OVERRIDE;
|
| virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
|
|
|
| - // Overridden from views::ButtonListener:
|
| + // views::ButtonListener:
|
| virtual void ButtonPressed(views::Button* sender,
|
| const ui::Event& event) OVERRIDE;
|
|
|
| - // Overridden from views::ContextMenuController:
|
| + // views::ContextMenuController:
|
| virtual void ShowContextMenuForView(views::View* source,
|
| const gfx::Point& point,
|
| ui::MenuSourceType source_type) OVERRIDE;
|
|
|
| - // Overridden from views::View:
|
| + // views::MaskedTargeterDelegate:
|
| + virtual bool GetHitTestMask(gfx::Path* mask) const OVERRIDE;
|
| +
|
| + // views::View:
|
| virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
| virtual void Layout() OVERRIDE;
|
| virtual void OnThemeChanged() OVERRIDE;
|
| virtual const char* GetClassName() const OVERRIDE;
|
| - virtual bool HasHitTestMask() const OVERRIDE;
|
| - virtual void GetHitTestMaskDeprecated(HitTestSource source,
|
| - gfx::Path* path) const OVERRIDE;
|
| virtual bool GetTooltipText(const gfx::Point& p,
|
| base::string16* tooltip) const OVERRIDE;
|
| virtual bool GetTooltipTextOrigin(const gfx::Point& p,
|
| @@ -198,7 +200,7 @@ class Tab : public gfx::AnimationDelegate,
|
| virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
|
| virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
|
|
|
| - // Overridden from ui::EventHandler:
|
| + // ui::EventHandler:
|
| virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
|
|
|
| // Invoked from Layout to adjust the position of the favicon or media
|
|
|