| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/macros.h" |
| 7 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 8 #include "chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h" | 9 #include "chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h" |
| 9 #include "chrome/browser/ui/views/tabs/tab.h" | 10 #include "chrome/browser/ui/views/tabs/tab.h" |
| 10 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 11 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
| 11 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" | 12 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" |
| 12 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" | 13 #include "chrome/browser/ui/views/tabs/tab_strip_observer.h" |
| 13 #include "chrome/test/base/testing_profile.h" | 14 #include "chrome/test/base/testing_profile.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 15 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
| 16 #include "ui/gfx/geometry/rect_conversions.h" | 17 #include "ui/gfx/geometry/rect_conversions.h" |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 ASSERT_TRUE(IsPointInTab(most_right_tab, unactive_overlap)); | 622 ASSERT_TRUE(IsPointInTab(most_right_tab, unactive_overlap)); |
| 622 | 623 |
| 623 EXPECT_EQ( | 624 EXPECT_EQ( |
| 624 right_tab, | 625 right_tab, |
| 625 FindTabView(tab_strip_->GetTooltipHandlerForPoint(unactive_overlap))); | 626 FindTabView(tab_strip_->GetTooltipHandlerForPoint(unactive_overlap))); |
| 626 | 627 |
| 627 // Confirm that tab strip doe not return tooltip handler for points that | 628 // Confirm that tab strip doe not return tooltip handler for points that |
| 628 // don't hit it. | 629 // don't hit it. |
| 629 EXPECT_FALSE(tab_strip_->GetTooltipHandlerForPoint(gfx::Point(-1, 2))); | 630 EXPECT_FALSE(tab_strip_->GetTooltipHandlerForPoint(gfx::Point(-1, 2))); |
| 630 } | 631 } |
| OLD | NEW |