Chromium Code Reviews| Index: chrome/browser/ui/views/tabs/base_tab_strip.cc |
| diff --git a/chrome/browser/ui/views/tabs/base_tab_strip.cc b/chrome/browser/ui/views/tabs/base_tab_strip.cc |
| index 410931c8201b56a33351d8c9f00abd0af0fd7b6b..9ed39b43f6bc68aeecd41494e6c68d822752db3e 100644 |
| --- a/chrome/browser/ui/views/tabs/base_tab_strip.cc |
| +++ b/chrome/browser/ui/views/tabs/base_tab_strip.cc |
| @@ -378,6 +378,11 @@ BaseTab* BaseTabStrip::GetTabAt(BaseTab* tab, |
| const gfx::Point& tab_in_tab_coordinates) { |
| gfx::Point local_point = tab_in_tab_coordinates; |
| ConvertPointToView(tab, this, &local_point); |
| + return GetTabAtLocal(local_point); |
| +} |
| + |
| +BaseTab* BaseTabStrip::GetTabAtLocal( |
| + const gfx::Point& local_point) { |
| views::View* view = GetEventHandlerForPoint(local_point); |
| if (!view) |
| return NULL; // No tab contains the point. |
| @@ -390,6 +395,7 @@ BaseTab* BaseTabStrip::GetTabAt(BaseTab* tab, |
| static_cast<BaseTab*>(view) : NULL; |
| } |
|
rjkroege
2011/03/28 22:07:40
remove
wyck
2011/03/30 15:53:11
Done.
|
| + |
| void BaseTabStrip::Layout() { |
| // Only do a layout if our size changed. |
| if (last_layout_size_ == size()) |