OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_strip_drag_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_strip_drag_controller.h" |
6 | 6 |
7 #import "base/mac/mac_util.h" | 7 #import "base/mac/mac_util.h" |
8 #include "base/mac/scoped_cftyperef.h" | 8 #include "base/mac/scoped_cftyperef.h" |
9 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" | 9 #import "chrome/browser/ui/cocoa/tabs/tab_controller.h" |
10 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 10 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
11 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" | 11 #import "chrome/browser/ui/cocoa/tabs/tab_view.h" |
12 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" | 12 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" |
13 | 13 |
14 // Provide the forward-declarations of new 10.7 SDK symbols so they can be | 14 // Replicate specific 10.7 SDK declarations for building with prior SDKs. |
15 // called when building with the 10.5 SDK. | |
16 #if !defined(MAC_OS_X_VERSION_10_7) || \ | 15 #if !defined(MAC_OS_X_VERSION_10_7) || \ |
17 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 | 16 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7 |
18 | 17 |
19 enum { | 18 enum { |
20 NSWindowAnimationBehaviorDefault = 0, | 19 NSWindowAnimationBehaviorDefault = 0, |
21 NSWindowAnimationBehaviorNone = 2, | 20 NSWindowAnimationBehaviorNone = 2, |
22 NSWindowAnimationBehaviorDocumentWindow = 3, | 21 NSWindowAnimationBehaviorDocumentWindow = 3, |
23 NSWindowAnimationBehaviorUtilityWindow = 4, | 22 NSWindowAnimationBehaviorUtilityWindow = 4, |
24 NSWindowAnimationBehaviorAlertPanel = 5 | 23 NSWindowAnimationBehaviorAlertPanel = 5 |
25 }; | 24 }; |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
550 NOTREACHED(); | 549 NOTREACHED(); |
551 } | 550 } |
552 } | 551 } |
553 if (useCache) { | 552 if (useCache) { |
554 workspaceIDCache_[windowID] = workspace; | 553 workspaceIDCache_[windowID] = workspace; |
555 } | 554 } |
556 return workspace; | 555 return workspace; |
557 } | 556 } |
558 | 557 |
559 @end | 558 @end |
OLD | NEW |