Index: components/mus/ws/event_dispatcher_delegate.h |
diff --git a/components/mus/ws/event_dispatcher_delegate.h b/components/mus/ws/event_dispatcher_delegate.h |
deleted file mode 100644 |
index 1d31fb99d509602490e7d62411285e9edc738863..0000000000000000000000000000000000000000 |
--- a/components/mus/ws/event_dispatcher_delegate.h |
+++ /dev/null |
@@ -1,73 +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_WS_EVENT_DISPATCHER_DELEGATE_H_ |
-#define COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ |
- |
-#include <stdint.h> |
- |
-#include "components/mus/common/types.h" |
- |
-namespace gfx { |
-class Point; |
-} |
- |
-namespace ui { |
-class Event; |
-} |
- |
-namespace mus { |
-namespace ws { |
- |
-class Accelerator; |
-class ServerWindow; |
- |
-// Used by EventDispatcher for mocking in tests. |
-class EventDispatcherDelegate { |
- public: |
- virtual void OnAccelerator(uint32_t accelerator, const ui::Event& event) = 0; |
- |
- virtual void SetFocusedWindowFromEventDispatcher(ServerWindow* window) = 0; |
- virtual ServerWindow* GetFocusedWindowForEventDispatcher() = 0; |
- |
- // Called when capture should be set on the native display. |window| is the |
- // window capture is being set on. |
- virtual void SetNativeCapture(ServerWindow* window) = 0; |
- // Called when the native display is having capture released. There is no |
- // longer a ServerWindow holding capture. |
- virtual void ReleaseNativeCapture() = 0; |
- // Called when |window| has lost capture. The native display may still be |
- // holding capture. The delegate should not change native display capture. |
- // ReleaseNativeCapture() is invoked if appropriate. |
- virtual void OnServerWindowCaptureLost(ServerWindow* window) = 0; |
- |
- virtual void OnMouseCursorLocationChanged(const gfx::Point& point) = 0; |
- |
- // Dispatches an event to the specific client. |
- virtual void DispatchInputEventToWindow(ServerWindow* target, |
- ClientSpecificId client_id, |
- const ui::Event& event, |
- Accelerator* accelerator) = 0; |
- |
- // Returns the id of the client to send events to. |in_nonclient_area| is |
- // true if the event occurred in the non-client area of the window. |
- virtual ClientSpecificId GetEventTargetClientId(const ServerWindow* window, |
- bool in_nonclient_area) = 0; |
- |
- // Returns the window to start searching from at the specified location, or |
- // null if there is a no window containing |location|. |
- virtual ServerWindow* GetRootWindowContaining(const gfx::Point& location) = 0; |
- |
- // Called when event dispatch could not find a target. OnAccelerator may still |
- // be called. |
- virtual void OnEventTargetNotFound(const ui::Event& event) = 0; |
- |
- protected: |
- virtual ~EventDispatcherDelegate() {} |
-}; |
- |
-} // namespace ws |
-} // namespace mus |
- |
-#endif // COMPONENTS_MUS_WS_EVENT_DISPATCHER_DELEGATE_H_ |