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

Unified Diff: ui/events/test/cocoa_test_event_utils.h

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 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
« no previous file with comments | « ui/events/platform/platform_event_utils.h ('k') | ui/events/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/cocoa_test_event_utils.h
diff --git a/ui/events/test/cocoa_test_event_utils.h b/ui/events/test/cocoa_test_event_utils.h
deleted file mode 100644
index 76c6a32fec5dd424f20ed164cbdacf696229d375..0000000000000000000000000000000000000000
--- a/ui/events/test/cocoa_test_event_utils.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_
-#define UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_
-
-#include <utility>
-
-#import <objc/objc-class.h>
-
-#include "base/basictypes.h"
-
-namespace cocoa_test_event_utils {
-
-// Create synthetic mouse events for testing. Currently these are very
-// basic, flesh out as needed. Points are all in window coordinates;
-// where the window is not specified, coordinate system is undefined
-// (but will be repeated when the event is queried).
-NSEvent* MouseEventWithType(NSEventType type, NSUInteger modifiers);
-NSEvent* MouseEventAtPoint(NSPoint point, NSEventType type,
- NSUInteger modifiers);
-NSEvent* LeftMouseDownAtPoint(NSPoint point);
-NSEvent* LeftMouseDownAtPointInWindow(NSPoint point, NSWindow* window);
-NSEvent* RightMouseDownAtPoint(NSPoint point);
-NSEvent* RightMouseDownAtPointInWindow(NSPoint point, NSWindow* window);
-
-// Return a mouse down and an up event with the given |clickCount| at
-// |view|'s midpoint.
-std::pair<NSEvent*, NSEvent*> MouseClickInView(NSView* view,
- NSUInteger clickCount);
-
-// Returns a key event with the given character.
-NSEvent* KeyEventWithCharacter(unichar c);
-
-// Returns a key event with the given type and modifier flags.
-NSEvent* KeyEventWithType(NSEventType event_type, NSUInteger modifiers);
-
-// Returns a key event with the given key code, type, and modifier flags.
-NSEvent* KeyEventWithKeyCode(unsigned short key_code,
- unichar c,
- NSEventType event_type,
- NSUInteger modifiers);
-
-// Returns a mouse enter/exit event with the given type.
-NSEvent* EnterExitEventWithType(NSEventType event_type);
-
-// Return an "other" event with the given type.
-NSEvent* OtherEventWithType(NSEventType event_type);
-
-} // namespace cocoa_test_event_utils
-
-#endif // UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_
« no previous file with comments | « ui/events/platform/platform_event_utils.h ('k') | ui/events/test/cocoa_test_event_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698