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

Unified Diff: components/html_viewer/touch_handler.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 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
« no previous file with comments | « components/html_viewer/test_html_viewer_impl.cc ('k') | components/html_viewer/touch_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/touch_handler.h
diff --git a/components/html_viewer/touch_handler.h b/components/html_viewer/touch_handler.h
deleted file mode 100644
index c62e9b7a2ac8339ae361c8701de8525bf01f21ee..0000000000000000000000000000000000000000
--- a/components/html_viewer/touch_handler.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2015 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 COMPONENTS_HTML_VIEWER_TOUCH_HANDLER_H_
-#define COMPONENTS_HTML_VIEWER_TOUCH_HANDLER_H_
-
-#include "base/macros.h"
-#include "components/mus/public/interfaces/input_events.mojom.h"
-#include "ui/events/gesture_detection/filtered_gesture_provider.h"
-
-namespace blink {
-class WebWidget;
-}
-
-namespace ui {
-class MotionEventGeneric;
-}
-
-namespace html_viewer {
-
-// TouchHandler is responsible for converting touch events into gesture events.
-// It does this by converting mus::mojom::Events into a MotionEventGeneric and
-// using
-// FilteredGestureProvider.
-class TouchHandler : public ui::GestureProviderClient {
- public:
- explicit TouchHandler(blink::WebWidget* web_widget);
- ~TouchHandler() override;
-
- void OnTouchEvent(const mus::mojom::Event& event);
-
- // ui::GestureProviderClient implementation.
- void OnGestureEvent(const ui::GestureEventData& gesture) override;
-
- private:
- // Updates |current_motion_event_| from |event|. Returns true on success.
- bool UpdateMotionEvent(const mus::mojom::Event& event);
-
- // Sends |current_motion_event_| to the GestureProvider and WebView.
- void SendMotionEventToGestureProvider();
-
- // Does post processing after sending |current_motion_event_| to the
- // GestureProvider.
- void PostProcessMotionEvent(const mus::mojom::Event& event);
-
- blink::WebWidget* web_widget_;
-
- ui::FilteredGestureProvider gesture_provider_;
-
- // As touch events are received they are converted to this event. If null no
- // touch events are in progress.
- scoped_ptr<ui::MotionEventGeneric> current_motion_event_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchHandler);
-};
-
-} // namespace html_viewer
-
-#endif // COMPONENTS_HTML_VIEWER_TOUCH_HANDLER_H_
« no previous file with comments | « components/html_viewer/test_html_viewer_impl.cc ('k') | components/html_viewer/touch_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698