OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/views/tabs/tab_strip.h" | 5 #include "chrome/browser/views/tabs/tab_strip.h" |
6 | 6 |
7 #include "base/gfx/size.h" | 7 #include "base/gfx/size.h" |
8 #include "chrome/app/theme/theme_resources.h" | 8 #include "grit/theme_resources.h" |
9 #include "chrome/browser/metrics/user_metrics.h" | 9 #include "chrome/browser/metrics/user_metrics.h" |
10 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/browser/tabs/tab_strip_model.h" | 12 #include "chrome/browser/tabs/tab_strip_model.h" |
13 #include "chrome/browser/view_ids.h" | 13 #include "chrome/browser/view_ids.h" |
14 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 14 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
15 #include "chrome/browser/views/tabs/tab.h" | 15 #include "chrome/browser/views/tabs/tab.h" |
16 #include "chrome/browser/tab_contents/web_contents.h" | 16 #include "chrome/browser/tab_contents/web_contents.h" |
17 #include "chrome/common/drag_drop_types.h" | 17 #include "chrome/common/drag_drop_types.h" |
18 #include "chrome/common/gfx/chrome_canvas.h" | 18 #include "chrome/common/gfx/chrome_canvas.h" |
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1533 return last_tab->x() + last_tab->width(); | 1533 return last_tab->x() + last_tab->width(); |
1534 } | 1534 } |
1535 | 1535 |
1536 bool TabStrip::IsPointInTab(Tab* tab, | 1536 bool TabStrip::IsPointInTab(Tab* tab, |
1537 const gfx::Point& point_in_tabstrip_coords) { | 1537 const gfx::Point& point_in_tabstrip_coords) { |
1538 gfx::Point point_in_tab_coords(point_in_tabstrip_coords); | 1538 gfx::Point point_in_tab_coords(point_in_tabstrip_coords); |
1539 View::ConvertPointToView(this, tab, &point_in_tab_coords); | 1539 View::ConvertPointToView(this, tab, &point_in_tab_coords); |
1540 return tab->HitTest(point_in_tab_coords); | 1540 return tab->HitTest(point_in_tab_coords); |
1541 } | 1541 } |
1542 | 1542 |
OLD | NEW |