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

Unified Diff: ui/events/event_utils.h

Issue 862093002: Split the event library into a cross-platform and native part. Part 1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT Created 5 years, 11 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/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.h
diff --git a/ui/events/event_utils.h b/ui/events/event_utils.h
index b17f506842b56711975f166c1b7b272456ac1456..115f1d88e7e41cf3b9d03fe18c5293bf96602d47 100644
--- a/ui/events/event_utils.h
+++ b/ui/events/event_utils.h
@@ -36,11 +36,6 @@ class MouseEvent;
// Updates the list of devices for cached properties.
EVENTS_EXPORT void UpdateDeviceList();
-// Returns a ui::Event wrapping a native event. Ownership of the returned value
-// is transferred to the caller.
-EVENTS_EXPORT scoped_ptr<Event> EventFromNative(
- const base::NativeEvent& native_event);
-
// Get the EventType from a native event.
EVENTS_EXPORT EventType EventTypeFromNative(
const base::NativeEvent& native_event);
@@ -105,15 +100,6 @@ EVENTS_EXPORT int GetChangedMouseButtonFlagsFromNative(
EVENTS_EXPORT gfx::Vector2d GetMouseWheelOffset(
const base::NativeEvent& native_event);
-// Returns a copy of |native_event|. Depending on the platform, this copy may
-// need to be deleted with ReleaseCopiedNativeEvent().
-base::NativeEvent CopyNativeEvent(
- const base::NativeEvent& native_event);
-
-// Delete a |native_event| previously created by CopyNativeEvent().
-void ReleaseCopiedNativeEvent(
- const base::NativeEvent& native_event);
-
// Gets the touch id from a native event.
EVENTS_EXPORT int GetTouchId(const base::NativeEvent& native_event);
@@ -155,9 +141,6 @@ EVENTS_EXPORT bool GetScrollOffsets(const base::NativeEvent& native_event,
int* finger_count);
#if defined(OS_WIN)
-EVENTS_EXPORT int GetModifiersFromACCEL(const ACCEL& accel);
-EVENTS_EXPORT int GetModifiersFromKeyState();
-
// Returns true if |message| identifies a mouse event that was generated as the
// result of a touch event.
EVENTS_EXPORT bool IsMouseEventFromTouch(UINT message);
@@ -169,16 +152,6 @@ EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code);
#endif
-#if defined(USE_X11)
-// Update the native X11 event to correspond to the new flags.
-EVENTS_EXPORT void UpdateX11EventForFlags(Event* event);
-// Update the native X11 event to correspond to the new button flags.
-EVENTS_EXPORT void UpdateX11EventForChangedButtonFlags(MouseEvent* event);
-#endif
-
-// Registers a custom event type.
-EVENTS_EXPORT int RegisterCustomEventType();
-
} // namespace ui
#endif // UI_EVENTS_EVENT_UTILS_H_
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698