Commit 172b2420 authored by thestig@chromium.org's avatar thestig@chromium.org

Revert 109594 - Forward Windows touch messages to the renderer

Review URL: http://codereview.chromium.org/8341125

TBR=jschuh@chromium.org
Review URL: http://codereview.chromium.org/8537005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109596 0039d316-1c4b-4281-b951-d872f2087c98
parent 0a6d5f65
......@@ -141,7 +141,6 @@ class RenderWidgetHostViewWin
MESSAGE_HANDLER(WM_VSCROLL, OnWheelEvent)
MESSAGE_HANDLER(WM_CHAR, OnKeyEvent)
MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent)
MESSAGE_HANDLER(WM_TOUCH, OnTouchEvent)
MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent)
MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
MESSAGE_HANDLER(WM_GETOBJECT, OnGetObject)
......@@ -248,8 +247,6 @@ class RenderWidgetHostViewWin
UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
LRESULT OnWheelEvent(
UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
LRESULT OnTouchEvent(
UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled);
LRESULT OnMouseActivate(UINT message,
WPARAM wparam,
LPARAM lparam,
......@@ -370,43 +367,6 @@ class RenderWidgetHostViewWin
// true if the View is not visible.
bool is_hidden_;
// Wrapper for maintaining touchstate associated with a WebTouchEvent.
class WebTouchState {
public:
explicit WebTouchState(const CWindowImpl* window);
// Updates the current touchpoint state with the supplied touches.
// Touches will be consumed only if they are of the same type (e.g. down,
// up, move). Returns the number of consumed touches.
size_t UpdateTouchPoints(TOUCHINPUT* points, size_t count);
// Marks all active touchpoints as released.
bool ReleaseTouchPoints();
// The contained WebTouchEvent.
const WebKit::WebTouchEvent& touch_event() { return touch_event_; }
// Returns if any touches are modified in the event.
bool is_changed() { return touch_event_.changedTouchesLength != 0; }
private:
// Adds a touch point or returns NULL if there's not enough space.
WebKit::WebTouchPoint* AddTouchPoint(TOUCHINPUT* touch_input);
// Copy details from a TOUCHINPUT to an existing WebTouchPoint, returning
// true if the resulting point is a stationary move.
bool UpdateTouchPoint(WebKit::WebTouchPoint* touch_point,
TOUCHINPUT* touch_input);
WebKit::WebTouchEvent touch_event_;
const CWindowImpl* const window_;
};
// The touch-state. Its touch-points are updated as necessary. A new
// touch-point is added from an TOUCHEVENTF_DOWN message, and a touch-point
// is removed from the list on an TOUCHEVENTF_UP message.
WebTouchState touch_state_;
// True if we're in the midst of a paint operation and should respond to
// DidPaintRect() notifications by merely invalidating. See comments on
// render_widget_host_view.h:DidPaintRect().
......
......@@ -253,9 +253,6 @@ const char kEnableThreadedCompositing[] = "enable-threaded-compositing";
// SYN packet.
const char kEnableTcpFastOpen[] = "enable-tcp-fastopen";
// Enable support for JavaScript touch events.
const char kEnableTouchEvents[] = "enable-touch-events";
// Enables support for fullscreen video. Current implementation is
// incomplete and this flag is used for development and testing.
const char kEnableVideoFullscreen[] = "enable-video-fullscreen";
......
......@@ -87,7 +87,6 @@ CONTENT_EXPORT extern const char kEnableStatsTable[];
extern const char kEnableStrictSiteIsolation[];
CONTENT_EXPORT extern const char kEnableThreadedCompositing[];
CONTENT_EXPORT extern const char kEnableTcpFastOpen[];
CONTENT_EXPORT extern const char kEnableTouchEvents[];
extern const char kEnableVideoFullscreen[];
extern const char kEnableVideoLogging[];
CONTENT_EXPORT extern const char kEnableVideoTrack[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment