OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <QuartzCore/QuartzCore.h> | 7 #import <QuartzCore/QuartzCore.h> |
8 | 8 |
9 #include <limits> | 9 #include <limits> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "app/l10n_util.h" | 12 #include "app/l10n_util.h" |
13 #include "app/resource_bundle.h" | 13 #include "app/resource_bundle.h" |
14 #include "base/mac_util.h" | 14 #include "base/mac_util.h" |
15 #include "base/nsimage_cache_mac.h" | 15 #include "base/nsimage_cache_mac.h" |
16 #include "base/sys_string_conversions.h" | 16 #include "base/sys_string_conversions.h" |
17 #include "chrome/app/chrome_dll_resource.h" | 17 #include "chrome/app/chrome_command_ids.h" |
18 #include "chrome/browser/browser.h" | 18 #include "chrome/browser/browser.h" |
19 #include "chrome/browser/browser_navigator.h" | 19 #include "chrome/browser/browser_navigator.h" |
20 #include "chrome/browser/find_bar.h" | 20 #include "chrome/browser/find_bar.h" |
21 #include "chrome/browser/find_bar_controller.h" | 21 #include "chrome/browser/find_bar_controller.h" |
22 #include "chrome/browser/metrics/user_metrics.h" | 22 #include "chrome/browser/metrics/user_metrics.h" |
23 #include "chrome/browser/profile.h" | 23 #include "chrome/browser/profile.h" |
24 #import "chrome/browser/cocoa/browser_window_controller.h" | 24 #import "chrome/browser/cocoa/browser_window_controller.h" |
25 #import "chrome/browser/cocoa/constrained_window_mac.h" | 25 #import "chrome/browser/cocoa/constrained_window_mac.h" |
26 #import "chrome/browser/cocoa/new_tab_button.h" | 26 #import "chrome/browser/cocoa/new_tab_button.h" |
27 #import "chrome/browser/cocoa/tab_strip_view.h" | 27 #import "chrome/browser/cocoa/tab_strip_view.h" |
(...skipping 1821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1849 NSInteger index = [self indexFromModelIndex:modelIndex]; | 1849 NSInteger index = [self indexFromModelIndex:modelIndex]; |
1850 BrowserWindowController* controller = | 1850 BrowserWindowController* controller = |
1851 (BrowserWindowController*)[[switchView_ window] windowController]; | 1851 (BrowserWindowController*)[[switchView_ window] windowController]; |
1852 DCHECK(index >= 0); | 1852 DCHECK(index >= 0); |
1853 if (index >= 0) { | 1853 if (index >= 0) { |
1854 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; | 1854 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; |
1855 } | 1855 } |
1856 } | 1856 } |
1857 | 1857 |
1858 @end | 1858 @end |
OLD | NEW |