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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "base/mac/scoped_nsobject.h" | 7 #import "base/mac/scoped_nsobject.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 9 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
10 #import "chrome/browser/ui/cocoa/tabs/media_indicator_view.h" | 10 #import "chrome/browser/ui/cocoa/tabs/media_indicator_view.h" |
11 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 11 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" |
12 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 12 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h" | 13 #import "chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h" |
14 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 14 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
15 #include "grit/theme_resources.h" | |
16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
17 #import "testing/gtest_mac.h" | 16 #import "testing/gtest_mac.h" |
18 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
19 #include "ui/base/resource/resource_bundle.h" | 18 #include "ui/base/resource/resource_bundle.h" |
20 #include "ui/resources/grit/ui_resources.h" | 19 #include "ui/resources/grit/ui_resources.h" |
21 | 20 |
22 // Implements the target interface for the tab, which gets sent messages when | 21 // Implements the target interface for the tab, which gets sent messages when |
23 // the tab is clicked on by the user and when its close box is clicked. | 22 // the tab is clicked on by the user and when its close box is clicked. |
24 @interface TabControllerTestTarget : NSObject<TabControllerTarget> { | 23 @interface TabControllerTestTarget : NSObject<TabControllerTarget> { |
25 @private | 24 @private |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 [[controller view] setFrame:tabFrame]; | 532 [[controller view] setFrame:tabFrame]; |
534 CheckForExpectedLayoutAndVisibilityOfSubviews(controller); | 533 CheckForExpectedLayoutAndVisibilityOfSubviews(controller); |
535 --tabFrame.size.width; | 534 --tabFrame.size.width; |
536 } | 535 } |
537 } | 536 } |
538 } | 537 } |
539 } | 538 } |
540 } | 539 } |
541 | 540 |
542 } // namespace | 541 } // namespace |
OLD | NEW |