| 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 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/i18n/rtl.h" | 10 #include "base/i18n/rtl.h" |
| 11 #include "base/mac/bundle_locations.h" | 11 #include "base/mac/bundle_locations.h" |
| 12 #include "base/mac/mac_util.h" | 12 #include "base/mac/mac_util.h" |
| 13 #include "base/strings/sys_string_conversions.h" | 13 #include "base/strings/sys_string_conversions.h" |
| 14 #import "chrome/browser/themes/theme_properties.h" | 14 #import "chrome/browser/themes/theme_properties.h" |
| 15 #import "chrome/browser/themes/theme_service.h" | 15 #import "chrome/browser/themes/theme_service.h" |
| 16 #import "chrome/browser/ui/cocoa/tabs/media_indicator_view.h" | 16 #import "chrome/browser/ui/cocoa/tabs/media_indicator_view.h" |
| 17 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 17 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
| 18 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 18 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
| 19 #import "chrome/browser/ui/cocoa/themed_window.h" | 19 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 20 #import "chrome/common/extensions/extension.h" | 20 #import "extensions/common/extension.h" |
| 21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 22 #import "third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h" | 22 #import "third_party/GTM/AppKit/GTMFadeTruncatingTextFieldCell.h" |
| 23 #import "ui/base/cocoa/menu_controller.h" | 23 #import "ui/base/cocoa/menu_controller.h" |
| 24 #include "ui/base/l10n/l10n_util_mac.h" | 24 #include "ui/base/l10n/l10n_util_mac.h" |
| 25 | 25 |
| 26 @implementation TabController | 26 @implementation TabController |
| 27 | 27 |
| 28 @synthesize action = action_; | 28 @synthesize action = action_; |
| 29 @synthesize app = app_; | 29 @synthesize app = app_; |
| 30 @synthesize loadingState = loadingState_; | 30 @synthesize loadingState = loadingState_; |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 // TabStripDragController. | 428 // TabStripDragController. |
| 429 - (BOOL)tabCanBeDragged:(TabController*)controller { | 429 - (BOOL)tabCanBeDragged:(TabController*)controller { |
| 430 return [[target_ dragController] tabCanBeDragged:controller]; | 430 return [[target_ dragController] tabCanBeDragged:controller]; |
| 431 } | 431 } |
| 432 | 432 |
| 433 - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab { | 433 - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab { |
| 434 [[target_ dragController] maybeStartDrag:event forTab:tab]; | 434 [[target_ dragController] maybeStartDrag:event forTab:tab]; |
| 435 } | 435 } |
| 436 | 436 |
| 437 @end | 437 @end |
| OLD | NEW |