Chromium Code Reviews| 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/ui/cocoa/tab_strip_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/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/mac/nsimage_cache.h" | 13 #include "app/mac/nsimage_cache.h" |
| 14 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
| 15 #include "base/mac/mac_util.h" | 15 #include "base/mac/mac_util.h" |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 27 #include "chrome/browser/tab_contents/navigation_controller.h" | 27 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 28 #include "chrome/browser/tab_contents/navigation_entry.h" | 28 #include "chrome/browser/tab_contents/navigation_entry.h" |
| 29 #include "chrome/browser/tab_contents/tab_contents.h" | 29 #include "chrome/browser/tab_contents/tab_contents.h" |
| 30 #include "chrome/browser/tab_contents/tab_contents_view.h" | 30 #include "chrome/browser/tab_contents/tab_contents_view.h" |
| 31 #include "chrome/browser/tabs/tab_strip_model.h" | 31 #include "chrome/browser/tabs/tab_strip_model.h" |
| 32 #include "chrome/browser/ui/browser.h" | 32 #include "chrome/browser/ui/browser.h" |
| 33 #include "chrome/browser/ui/browser_navigator.h" | 33 #include "chrome/browser/ui/browser_navigator.h" |
| 34 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 34 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 35 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" | 35 #import "chrome/browser/ui/cocoa/constrained_window_mac.h" |
| 36 #import "chrome/browser/ui/cocoa/new_tab_button.h" | 36 #import "chrome/browser/ui/cocoa/new_tab_button.h" |
| 37 #import "chrome/browser/ui/cocoa/tab_strip_view.h" | |
| 38 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" | 37 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" |
| 39 #import "chrome/browser/ui/cocoa/tab_controller.h" | 38 #import "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" |
| 40 #import "chrome/browser/ui/cocoa/tab_strip_model_observer_bridge.h" | 39 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" |
| 41 #import "chrome/browser/ui/cocoa/tab_view.h" | 40 #import "chrome/browser/ui/cocoa/tabs/tab_strip_model_observer_bridge.h" |
| 42 #import "chrome/browser/ui/cocoa/throbber_view.h" | 41 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
|
Avi (use Gerrit)
2011/01/19 19:30:23
Alphabetize.
| |
| 42 #import "chrome/browser/ui/cocoa/tabs/throbber_view.h" | |
| 43 #include "chrome/browser/ui/find_bar/find_bar.h" | 43 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 44 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 44 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 45 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 45 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 46 #include "grit/app_resources.h" | 46 #include "grit/app_resources.h" |
| 47 #include "grit/generated_resources.h" | 47 #include "grit/generated_resources.h" |
| 48 #include "grit/theme_resources.h" | 48 #include "grit/theme_resources.h" |
| 49 #include "skia/ext/skia_utils_mac.h" | 49 #include "skia/ext/skia_utils_mac.h" |
| 50 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" | 50 #import "third_party/GTM/AppKit/GTMNSAnimation+Duration.h" |
| 51 | 51 |
| 52 NSString* const kTabStripNumberOfTabsChanged = @"kTabStripNumberOfTabsChanged"; | 52 NSString* const kTabStripNumberOfTabsChanged = @"kTabStripNumberOfTabsChanged"; |
| (...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1895 NSInteger index = [self indexFromModelIndex:modelIndex]; | 1895 NSInteger index = [self indexFromModelIndex:modelIndex]; |
| 1896 BrowserWindowController* controller = | 1896 BrowserWindowController* controller = |
| 1897 (BrowserWindowController*)[[switchView_ window] windowController]; | 1897 (BrowserWindowController*)[[switchView_ window] windowController]; |
| 1898 DCHECK(index >= 0); | 1898 DCHECK(index >= 0); |
| 1899 if (index >= 0) { | 1899 if (index >= 0) { |
| 1900 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; | 1900 [controller setTab:[self viewAtIndex:index] isDraggable:YES]; |
| 1901 } | 1901 } |
| 1902 } | 1902 } |
| 1903 | 1903 |
| 1904 @end | 1904 @end |
| OLD | NEW |