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

Unified Diff: content/browser/renderer_host/input/gesture_event_packet.h

Issue 181833003: [Android] Out with the Android GR, in with the new unified C++ GR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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: content/browser/renderer_host/input/gesture_event_packet.h
diff --git a/content/browser/renderer_host/input/gesture_event_packet.h b/content/browser/renderer_host/input/gesture_event_packet.h
deleted file mode 100644
index cb2bfe83d4f7d3ac32e34e5117aec18a072ab81c..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/gesture_event_packet.h
+++ /dev/null
@@ -1,55 +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 CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_PACKET_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_PACKET_H_
-
-#include "content/common/content_export.h"
-#include "third_party/WebKit/public/web/WebInputEvent.h"
-
-namespace content {
-
-// Acts as a transport container for gestures created (directly or indirectly)
-// by a touch event.
-class CONTENT_EXPORT GestureEventPacket {
- public:
- enum GestureSource {
- UNDEFINED = -1, // Used only for a default-constructed packet.
- INVALID, // The source of the gesture was invalid.
- TOUCH_SEQUENCE_START, // The start of a new gesture sequence.
- TOUCH_SEQUENCE_END, // The end of gesture sequence.
- TOUCH_START, // A touch down occured during a gesture sequence.
- TOUCH_MOVE, // A touch move occured during a gesture sequence.
- TOUCH_END, // A touch up occured during a gesture sequence.
- TOUCH_TIMEOUT, // Timeout from an existing gesture sequence.
- };
-
- GestureEventPacket();
- GestureEventPacket(const GestureEventPacket& other);
- ~GestureEventPacket();
- GestureEventPacket& operator=(const GestureEventPacket& other);
-
- // Factory methods for creating a packet from a particular event.
- static GestureEventPacket FromTouch(const blink::WebTouchEvent& event);
- static GestureEventPacket FromTouchTimeout(
- const blink::WebGestureEvent& event);
-
- void Push(const blink::WebGestureEvent& gesture);
-
- const blink::WebGestureEvent& gesture(size_t i) const { return gestures_[i]; }
- size_t gesture_count() const { return gesture_count_; }
- GestureSource gesture_source() const { return gesture_source_; }
-
-private:
- explicit GestureEventPacket(GestureSource source);
-
- enum { kMaxGesturesPerTouch = 5 };
- blink::WebGestureEvent gestures_[kMaxGesturesPerTouch];
- size_t gesture_count_;
- GestureSource gesture_source_;
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_GESTURE_EVENT_PACKET_H_

Powered by Google App Engine
This is Rietveld 408576698