| 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 #ifndef BASE_COCOA_PROTOCOLS_MAC_H_ | 5 #ifndef BASE_COCOA_PROTOCOLS_MAC_H_ |
| 6 #define BASE_COCOA_PROTOCOLS_MAC_H_ | 6 #define BASE_COCOA_PROTOCOLS_MAC_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 10 | 9 |
| 11 // GTM also maintinas a list of empty protocols, but only the ones the library | 10 // GTM also maintinas a list of empty protocols, but only the ones the library |
| 12 // requires. Augment that below. | 11 // requires. Augment that below. |
| 13 #import "third_party/GTM/GTMDefines.h" | 12 #import "third_party/GTM/GTMDefines.h" |
| 14 | 13 |
| 15 // The Mac OS X 10.6 SDK introduced new protocols used for delegates. These | 14 // The Mac OS X 10.6 SDK introduced new protocols used for delegates. These |
| 16 // protocol defintions were not present in earlier releases of the Mac OS X | 15 // protocol defintions were not present in earlier releases of the Mac OS X |
| 17 // SDK. In order to support building against the new SDK, which requires | 16 // SDK. In order to support building against the new SDK, which requires |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 #if !defined(MAC_OS_X_VERSION_10_8) || \ | 46 #if !defined(MAC_OS_X_VERSION_10_8) || \ |
| 48 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 | 47 MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8 |
| 49 | 48 |
| 50 DEFINE_EMPTY_PROTOCOL(NSUserNotificationCenterDelegate) | 49 DEFINE_EMPTY_PROTOCOL(NSUserNotificationCenterDelegate) |
| 51 | 50 |
| 52 #endif // MAC_OS_X_VERSION_10_6 | 51 #endif // MAC_OS_X_VERSION_10_6 |
| 53 | 52 |
| 54 #undef DEFINE_EMPTY_PROTOCOL | 53 #undef DEFINE_EMPTY_PROTOCOL |
| 55 | 54 |
| 56 #endif // BASE_COCOA_PROTOCOLS_MAC_H_ | 55 #endif // BASE_COCOA_PROTOCOLS_MAC_H_ |
| OLD | NEW |