| Index: ui/base/cocoa/cocoa_base_utils.mm
|
| diff --git a/ui/base/cocoa/cocoa_base_utils.mm b/ui/base/cocoa/cocoa_base_utils.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..da63ae29aef7664ad902b488aaa99bd5b0e70d7a
|
| --- /dev/null
|
| +++ b/ui/base/cocoa/cocoa_base_utils.mm
|
| @@ -0,0 +1,22 @@
|
| +// Copyright 2013 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.
|
| +
|
| +#include "ui/base/cocoa/cocoa_base_utils.h"
|
| +
|
| +#include "ui/events/cocoa/cocoa_event_utils.h"
|
| +
|
| +namespace ui {
|
| +
|
| +WindowOpenDisposition WindowOpenDispositionFromNSEvent(NSEvent* event) {
|
| + NSUInteger modifiers = [event modifierFlags];
|
| + return WindowOpenDispositionFromNSEventWithFlags(event, modifiers);
|
| +}
|
| +
|
| +WindowOpenDisposition WindowOpenDispositionFromNSEventWithFlags(
|
| + NSEvent* event, NSUInteger modifiers) {
|
| + int event_flags = EventFlagsFromNSEventWithModifiers(event, modifiers);
|
| + return DispositionFromEventFlags(event_flags);
|
| +}
|
| +
|
| +} // namespace ui
|
|
|