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

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

Issue 6750007: Scrolling Tabs (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: addressing reviewer issues Created 9 years, 9 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/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())

Powered by Google App Engine
This is Rietveld 408576698