| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/views/tabs/tab_strip.h" | 5 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/stl_util-inl.h" | 12 #include "base/stl_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/tabs/tab_strip_selection_model.h" | 14 #include "chrome/browser/tabs/tab_strip_selection_model.h" |
| 15 #include "chrome/browser/themes/theme_service.h" | 15 #include "chrome/browser/themes/theme_service.h" |
| 16 #include "chrome/browser/ui/view_ids.h" | 16 #include "chrome/browser/ui/view_ids.h" |
| 17 #include "chrome/browser/ui/views/tabs/tab.h" | 17 #include "chrome/browser/ui/views/tabs/tab.h" |
| 18 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" | 18 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" |
| 19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
| 20 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
| 21 #include "grit/theme_resources_standard.h" | 21 #include "grit/theme_resources_standard.h" |
| 22 #include "ui/base/accessibility/accessible_view_state.h" | 22 #include "ui/base/accessibility/accessible_view_state.h" |
| (...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1035 } | 1035 } |
| 1036 return mini_count; | 1036 return mini_count; |
| 1037 } | 1037 } |
| 1038 | 1038 |
| 1039 bool TabStrip::IsPointInTab(Tab* tab, | 1039 bool TabStrip::IsPointInTab(Tab* tab, |
| 1040 const gfx::Point& point_in_tabstrip_coords) { | 1040 const gfx::Point& point_in_tabstrip_coords) { |
| 1041 gfx::Point point_in_tab_coords(point_in_tabstrip_coords); | 1041 gfx::Point point_in_tab_coords(point_in_tabstrip_coords); |
| 1042 View::ConvertPointToView(this, tab, &point_in_tab_coords); | 1042 View::ConvertPointToView(this, tab, &point_in_tab_coords); |
| 1043 return tab->HitTest(point_in_tab_coords); | 1043 return tab->HitTest(point_in_tab_coords); |
| 1044 } | 1044 } |
| OLD | NEW |