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

Unified Diff: content/renderer/input/scoped_web_input_event_with_latency_info.h

Issue 2683043004: Remove ui/events/blink dependency on blink_minimal. (Closed)
Patch Set: fix win debug Created 3 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/renderer/input/scoped_web_input_event_with_latency_info.h
diff --git a/content/renderer/input/scoped_web_input_event_with_latency_info.h b/content/renderer/input/scoped_web_input_event_with_latency_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd0933165156a504ab96462a5848769ed2dafd92
--- /dev/null
+++ b/content/renderer/input/scoped_web_input_event_with_latency_info.h
@@ -0,0 +1,45 @@
+// Copyright 2017 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_RENDERER_SCOPED_WEB_INPUT_EVENT_WITH_LATENCY_INFO_H_
+#define CONTENT_RENDERER_SCOPED_WEB_INPUT_EVENT_WITH_LATENCY_INFO_H_
+
+#include "base/compiler_specific.h"
+#include "base/logging.h"
+#include "content/common/content_export.h"
+#include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h"
+#include "third_party/WebKit/public/platform/WebGestureEvent.h"
+#include "third_party/WebKit/public/platform/WebMouseWheelEvent.h"
+#include "third_party/WebKit/public/platform/WebTouchEvent.h"
+#include "ui/events/blink/blink_event_util.h"
+#include "ui/events/blink/web_input_event_traits.h"
+#include "ui/events/latency_info.h"
+
+namespace content {
+
+class ScopedWebInputEventWithLatencyInfo {
+ public:
+ ScopedWebInputEventWithLatencyInfo(ui::WebScopedInputEvent,
+ const ui::LatencyInfo&);
+
+ ~ScopedWebInputEventWithLatencyInfo();
+
+ bool CanCoalesceWith(const ScopedWebInputEventWithLatencyInfo& other) const
+ WARN_UNUSED_RESULT;
+
+ const blink::WebInputEvent& event() const;
+ const blink::WebCoalescedInputEvent& coalesced_event() const;
+ blink::WebInputEvent& event();
+ const ui::LatencyInfo latencyInfo() const { return latency_; }
+
+ void CoalesceWith(const ScopedWebInputEventWithLatencyInfo& other);
+
+ private:
+ blink::WebScopedCoalescedInputEvent event_;
+ mutable ui::LatencyInfo latency_;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_SCOPED_WEB_INPUT_EVENT_WITH_LATENCY_INFO_H_

Powered by Google App Engine
This is Rietveld 408576698