Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(598)

Side by Side Diff: ui/base/cocoa/cocoa_base_utils.mm

Issue 160083003: Split cocoa_event_utils in two parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still works? Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/base/cocoa/cocoa_base_utils.h ('k') | ui/base/cocoa/cocoa_base_utils_unittest.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/base/cocoa/cocoa_base_utils.h"
6
7 #include "ui/events/cocoa/cocoa_event_utils.h"
8
9 namespace ui {
10
11 WindowOpenDisposition WindowOpenDispositionFromNSEvent(NSEvent* event) {
12 NSUInteger modifiers = [event modifierFlags];
13 return WindowOpenDispositionFromNSEventWithFlags(event, modifiers);
14 }
15
16 WindowOpenDisposition WindowOpenDispositionFromNSEventWithFlags(
17 NSEvent* event, NSUInteger modifiers) {
18 int event_flags = EventFlagsFromNSEventWithModifiers(event, modifiers);
19 return DispositionFromEventFlags(event_flags);
20 }
21
22 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/cocoa/cocoa_base_utils.h ('k') | ui/base/cocoa/cocoa_base_utils_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698