Commit 91db7c20 authored by thakis@chromium.org's avatar thakis@chromium.org

mac 10.7 SDK: Add missing protocols.

It's just one.

BUG=136844
TEST=none


Review URL: https://chromiumcodereview.appspot.com/10833031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148616 0039d316-1c4b-4281-b951-d872f2087c98
parent 7398013d
......@@ -11,8 +11,8 @@
// requires. Augment that below.
#import "third_party/GTM/GTMDefines.h"
// The Mac OS X 10.8 SDK introduced new protocols used for delegates. These
// protocol defintions were not present in earlier releases of the Mac OS X
// New Mac OS X SDKs introduce new protocols used for delegates. These
// protocol defintions aren't not present in earlier releases of the Mac OS X
// SDK. In order to support building against the new SDK, which requires
// delegates to conform to these protocols, and earlier SDKs, which do not
// define these protocols at all, this file will provide empty protocol
......@@ -22,6 +22,13 @@
@protocol p \
@end
#if !defined(MAC_OS_X_VERSION_10_7) || \
MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
DEFINE_EMPTY_PROTOCOL(NSDraggingDestination)
#endif // MAC_OS_X_VERSION_10_7
#if !defined(MAC_OS_X_VERSION_10_8) || \
MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_8
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -8,6 +8,7 @@
#import <Cocoa/Cocoa.h>
#include <map>
#import "base/mac/cocoa_protocols.h"
#include "base/memory/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#import "chrome/browser/chrome_browser_application_mac.h"
......@@ -149,7 +150,8 @@ willAnimateFromState:(bookmarks::VisualState)oldState
BookmarkButtonDelegate,
BookmarkButtonControllerProtocol,
CrApplicationEventHookProtocol,
NSUserInterfaceValidations> {
NSUserInterfaceValidations,
NSDraggingDestination> {
@private
// The visual state of the bookmark bar. If an animation is running, this is
// set to the "destination" and |lastVisualState_| is set to the "original"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment