| 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" | |
| 13 #import "chrome/browser/themes/theme_properties.h" | 12 #import "chrome/browser/themes/theme_properties.h" |
| 14 #import "chrome/browser/themes/theme_service.h" | 13 #import "chrome/browser/themes/theme_service.h" |
| 15 #import "chrome/browser/ui/cocoa/sprite_view.h" | 14 #import "chrome/browser/ui/cocoa/sprite_view.h" |
| 16 #import "chrome/browser/ui/cocoa/tabs/media_indicator_button_cocoa.h" | 15 #import "chrome/browser/ui/cocoa/tabs/media_indicator_button_cocoa.h" |
| 17 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 16 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
| 18 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 17 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
| 19 #import "chrome/browser/ui/cocoa/themed_window.h" | 18 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 20 #include "content/public/browser/user_metrics.h" | 19 #include "content/public/browser/user_metrics.h" |
| 21 #import "extensions/common/extension.h" | 20 #import "extensions/common/extension.h" |
| 22 #import "ui/base/cocoa/menu_controller.h" | 21 #import "ui/base/cocoa/menu_controller.h" |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // TabStripDragController. | 448 // TabStripDragController. |
| 450 - (BOOL)tabCanBeDragged:(TabController*)controller { | 449 - (BOOL)tabCanBeDragged:(TabController*)controller { |
| 451 return [[target_ dragController] tabCanBeDragged:controller]; | 450 return [[target_ dragController] tabCanBeDragged:controller]; |
| 452 } | 451 } |
| 453 | 452 |
| 454 - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab { | 453 - (void)maybeStartDrag:(NSEvent*)event forTab:(TabController*)tab { |
| 455 [[target_ dragController] maybeStartDrag:event forTab:tab]; | 454 [[target_ dragController] maybeStartDrag:event forTab:tab]; |
| 456 } | 455 } |
| 457 | 456 |
| 458 @end | 457 @end |
| OLD | NEW |