| Index: chrome/browser/ui/views/tabs/tab_strip.h
|
| diff --git a/chrome/browser/ui/views/tabs/tab_strip.h b/chrome/browser/ui/views/tabs/tab_strip.h
|
| index bef537081af82afc06d06e01d40e1d29574889ae..31d733f46f31991c29ce6df9cf253ccf715b3fad 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.h
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.h
|
| @@ -204,8 +204,8 @@ class TabStrip : public views::View,
|
| virtual void OnDragExited() OVERRIDE;
|
| virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
|
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
|
| - virtual views::View* GetEventHandlerForPoint(
|
| - const gfx::Point& point) OVERRIDE;
|
| + virtual views::View* GetEventHandler(const gfx::Rect& rect, EventType type)
|
| + OVERRIDE;
|
|
|
| protected:
|
| // Horizontal gap between mini and non-mini-tabs.
|
| @@ -469,6 +469,10 @@ class TabStrip : public views::View,
|
| // hit-test region of the specified Tab.
|
| bool IsPointInTab(Tab* tab, const gfx::Point& point_in_tabstrip_coords);
|
|
|
| + // Returns true if the specified rect in TabStrip coords intersects the
|
| + // hit-test region of the specified Tab.
|
| + bool IsRectInTab(Tab* tab, const gfx::Rect& rect_in_tabstrip_coords);
|
| +
|
| // -- Touch Layout ----------------------------------------------------------
|
|
|
| // Returns the position normal tabs start at.
|
| @@ -476,12 +480,22 @@ class TabStrip : public views::View,
|
|
|
| // Returns the tab to use for event handling. This uses FindTabForEventFrom()
|
| // to do the actual searching.
|
| + // TODO: Deprecate
|
| Tab* FindTabForEvent(const gfx::Point& point);
|
|
|
| + // Returns the tab to use for event handling. This uses FindTabForEventFrom()
|
| + // to do the actual searching.
|
| + Tab* FindTabForEvent(const gfx::Rect& rect);
|
| +
|
| // Returns the tab to use for event handling starting at index |start| and
|
| // iterating by |delta|.
|
| + // TODO: Deprecate
|
| Tab* FindTabForEventFrom(const gfx::Point& point, int start, int delta);
|
|
|
| + // Returns the tab to use for event handling starting at index |start| and
|
| + // iterating by |delta|.
|
| + Tab* FindTabForEventFrom(const gfx::Rect& rect, int start, int delta);
|
| +
|
| // Returns the x-coordinates of the tabs.
|
| std::vector<int> GetTabXCoordinates();
|
|
|
|
|