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

Unified Diff: ui/events/win/events_win.cc

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/platform/platform_event_builder_x_unittest.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/win/events_win.cc
diff --git a/ui/events/win/events_win.cc b/ui/events/win/events_win.cc
index ae9d40302dd4618b59f90ab70c3b3784c4ee0c43..bcbb2c8ef7fcbf1e04703963ed7d2ed319d240ad 100644
--- a/ui/events/win/events_win.cc
+++ b/ui/events/win/events_win.cc
@@ -292,13 +292,6 @@ gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) {
return gfx::Vector2d(GET_WHEEL_DELTA_WPARAM(native_event.wParam), 0);
}
-base::NativeEvent CopyNativeEvent(const base::NativeEvent& event) {
- return event;
-}
-
-void ReleaseCopiedNativeEvent(const base::NativeEvent& event) {
-}
-
void IncrementTouchIdRefCount(const base::NativeEvent& event) {
NOTIMPLEMENTED();
}
@@ -356,30 +349,6 @@ bool GetFlingData(const base::NativeEvent& native_event,
return false;
}
-int GetModifiersFromACCEL(const ACCEL& accel) {
- int modifiers = EF_NONE;
- if (accel.fVirt & FSHIFT)
- modifiers |= EF_SHIFT_DOWN;
- if (accel.fVirt & FCONTROL)
- modifiers |= EF_CONTROL_DOWN;
- if (accel.fVirt & FALT)
- modifiers |= EF_ALT_DOWN;
- return modifiers;
-}
-
-int GetModifiersFromKeyState() {
- int modifiers = EF_NONE;
- if (base::win::IsShiftPressed())
- modifiers |= EF_SHIFT_DOWN;
- if (base::win::IsCtrlPressed())
- modifiers |= EF_CONTROL_DOWN;
- if (base::win::IsAltPressed())
- modifiers |= EF_ALT_DOWN;
- if (base::win::IsAltGrPressed())
- modifiers |= EF_ALTGR_DOWN;
- return modifiers;
-}
-
// Windows emulates mouse messages for touch events.
bool IsMouseEventFromTouch(UINT message) {
return (message >= WM_MOUSEFIRST) && (message <= WM_MOUSELAST) &&
« no previous file with comments | « ui/events/platform/platform_event_builder_x_unittest.cc ('k') | ui/events/x/events_x.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698