diff options
Diffstat (limited to 'base/mac/scoped_sending_event.mm')
-rw-r--r-- | base/mac/scoped_sending_event.mm | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/base/mac/scoped_sending_event.mm b/base/mac/scoped_sending_event.mm deleted file mode 100644 index c3813d8..0000000 --- a/base/mac/scoped_sending_event.mm +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) 2011 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. - -#import "base/mac/scoped_sending_event.h" - -#include "base/logging.h" - -namespace base { -namespace mac { - -ScopedSendingEvent::ScopedSendingEvent() - : app_(static_cast<NSObject<CrAppControlProtocol>*>(NSApp)) { - DCHECK([app_ conformsToProtocol:@protocol(CrAppControlProtocol)]); - handling_ = [app_ isHandlingSendEvent]; - [app_ setHandlingSendEvent:YES]; -} - -ScopedSendingEvent::~ScopedSendingEvent() { - [app_ setHandlingSendEvent:handling_]; -} - -} // namespace mac -} // namespace base |