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

Unified Diff: components/mus/public/cpp/input_event_handler.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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/mus/public/cpp/input_devices/input_device_client.cc ('k') | components/mus/public/cpp/lib/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/input_event_handler.h
diff --git a/components/mus/public/cpp/input_event_handler.h b/components/mus/public/cpp/input_event_handler.h
deleted file mode 100644
index 3d445b23bad7fa82267512e324f98f8f5d450b01..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/input_event_handler.h
+++ /dev/null
@@ -1,43 +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_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
-#define COMPONENTS_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
-
-#include <memory>
-
-#include "base/callback_forward.h"
-
-namespace ui {
-class Event;
-}
-
-namespace mus {
-
-class Window;
-
-namespace mojom {
-enum class EventResult;
-}
-
-// Responsible for processing input events for mus::Window.
-class InputEventHandler {
- public:
- // The event handler can asynchronously ack the event by taking ownership of
- // the |ack_callback|. The callback takes an EventResult indicating if the
- // handler has consumed the event. If the handler does not take ownership of
- // the callback, then WindowTreeClient will ack the event as not consumed.
- virtual void OnWindowInputEvent(
- Window* target,
- const ui::Event& event,
- std::unique_ptr<base::Callback<void(mojom::EventResult)>>*
- ack_callback) = 0;
-
- protected:
- virtual ~InputEventHandler() {}
-};
-
-} // namespace mus
-
-#endif // COMPONENTS_MUS_PUBLIC_CPP_INPUT_EVENT_HANDLER_H_
« no previous file with comments | « components/mus/public/cpp/input_devices/input_device_client.cc ('k') | components/mus/public/cpp/lib/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698