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

Unified Diff: ui/events/cocoa/cocoa_event_utils.mm

Issue 160083003: Split cocoa_event_utils in two parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: ui/events/cocoa/cocoa_event_utils.mm
diff --git a/ui/base/cocoa/cocoa_event_utils.mm b/ui/events/cocoa/cocoa_event_utils.mm
similarity index 76%
rename from ui/base/cocoa/cocoa_event_utils.mm
rename to ui/events/cocoa/cocoa_event_utils.mm
index 55c885e5443e2a9977b9abcc561e6ec4e6b0e97d..2bfa6af0951d9ada2b2ddc7816995d92f9d59d8c 100644
--- a/ui/base/cocoa/cocoa_event_utils.mm
+++ b/ui/events/cocoa/cocoa_event_utils.mm
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ui/base/cocoa/cocoa_event_utils.h"
+#import "ui/events/cocoa/cocoa_event_utils.h"
-#include "ui/base/window_open_disposition.h"
#include "ui/events/event_constants.h"
namespace {
@@ -56,15 +55,4 @@ int EventFlagsFromNSEventWithModifiers(NSEvent* event, NSUInteger modifiers) {
return flags;
}
-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 ui::DispositionFromEventFlags(event_flags);
-}
-
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698