OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/cocoa/tab_strip_controller.h" | 5 #import "chrome/browser/cocoa/tab_strip_controller.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/mac_util.h" | 9 #include "base/mac_util.h" |
| 10 #include "base/nsimage_cache_mac.h" |
10 #include "base/sys_string_conversions.h" | 11 #include "base/sys_string_conversions.h" |
11 #include "chrome/app/chrome_dll_resource.h" | 12 #include "chrome/app/chrome_dll_resource.h" |
12 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
13 #include "chrome/browser/cocoa/nsimage_cache.h" | |
14 #include "chrome/browser/find_bar.h" | 14 #include "chrome/browser/find_bar.h" |
15 #include "chrome/browser/find_bar_controller.h" | 15 #include "chrome/browser/find_bar_controller.h" |
16 #include "chrome/browser/metrics/user_metrics.h" | 16 #include "chrome/browser/metrics/user_metrics.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
18 #import "chrome/browser/cocoa/browser_window_controller.h" | 18 #import "chrome/browser/cocoa/browser_window_controller.h" |
19 #import "chrome/browser/cocoa/constrained_window_mac.h" | 19 #import "chrome/browser/cocoa/constrained_window_mac.h" |
20 #import "chrome/browser/cocoa/tab_strip_view.h" | 20 #import "chrome/browser/cocoa/tab_strip_view.h" |
21 #import "chrome/browser/cocoa/tab_cell.h" | 21 #import "chrome/browser/cocoa/tab_cell.h" |
22 #import "chrome/browser/cocoa/tab_contents_controller.h" | 22 #import "chrome/browser/cocoa/tab_contents_controller.h" |
23 #import "chrome/browser/cocoa/tab_controller.h" | 23 #import "chrome/browser/cocoa/tab_controller.h" |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 BrowserWindowController* controller = | 979 BrowserWindowController* controller = |
980 (BrowserWindowController*)[[switchView_ window] windowController]; | 980 (BrowserWindowController*)[[switchView_ window] windowController]; |
981 DCHECK(index >= 0); | 981 DCHECK(index >= 0); |
982 if (index >= 0) { | 982 if (index >= 0) { |
983 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; | 983 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; |
984 } | 984 } |
985 } | 985 } |
986 | 986 |
987 | 987 |
988 @end | 988 @end |
OLD | NEW |