diff options
author | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 23:43:35 +0000 |
---|---|---|
committer | asargent@chromium.org <asargent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-19 23:43:35 +0000 |
commit | 37f36b763a2cfd0cb86c3779005cd15225a43362 (patch) | |
tree | 947651d88f3532853b1b6ffa016109b664f6597b /content/browser/renderer_host/input/input_router.h | |
parent | 518024c161921db45e32d6eb4f177a91888ade74 (diff) | |
download | chromium_src-37f36b763a2cfd0cb86c3779005cd15225a43362.zip chromium_src-37f36b763a2cfd0cb86c3779005cd15225a43362.tar.gz chromium_src-37f36b763a2cfd0cb86c3779005cd15225a43362.tar.bz2 |
Revert 212684 "Factor out input event handling code from RenderW..."
This seems to have broken RenderViewHostTest.BadMessageHandlerInputEventAck on
linux and chromeos on the waterfall.
> Factor out input event handling code from RenderWidgetHostImpl to InputRouter
>
> Input event handling code in RenderWidgetHostImpl has evolved such that making
> making related changes is a fragile and delicate process. This code factors out
> such code into a single ImmediateInputRouter class, implementing an abstract
> InputRouter. This makes minor input-related changes more self-contained, and
> enables major changes to progress in parallel, as with the implementation of
> the BufferedInputRouter.
>
> BUG=245499
>
> Review URL: https://chromiumcodereview.appspot.com/15789009
TBR=jdduke@chromium.org
Review URL: https://codereview.chromium.org/19492016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212695 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/input/input_router.h')
-rw-r--r-- | content/browser/renderer_host/input/input_router.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h deleted file mode 100644 index 2d8a4c6..0000000 --- a/content/browser/renderer_host/input/input_router.h +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright 2013 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_INPUT_ROUTER_H_ -#define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ - -#include "base/basictypes.h" -#include "content/port/browser/event_with_latency_info.h" -#include "content/port/common/input_event_ack_state.h" -#include "content/public/browser/native_web_keyboard_event.h" -#include "ipc/ipc_listener.h" -#include "third_party/WebKit/public/web/WebInputEvent.h" - -namespace content { - -class InputRouterClient; - -// The InputRouter allows the embedder to customize how input events are -// sent to the renderer, and how responses are dispatched to the browser. -// While the router should respect the relative order in which events are -// received, it is free to customize when those events are dispatched. -class InputRouter : public IPC::Listener { - public: - virtual ~InputRouter() {} - - // Send and take ownership of the the given InputMsg_*. This should be used - // only for event types not associated with a WebInputEvent. Returns true on - // success and false otherwise. - virtual bool SendInput(IPC::Message* message) = 0; - - // WebInputEvents - virtual void SendMouseEvent( - const MouseEventWithLatencyInfo& mouse_event) = 0; - virtual void SendWheelEvent( - const MouseWheelEventWithLatencyInfo& wheel_event) = 0; - virtual void SendKeyboardEvent( - const NativeWebKeyboardEvent& key_event, - const ui::LatencyInfo& latency_info) = 0; - virtual void SendGestureEvent( - const GestureEventWithLatencyInfo& gesture_event) = 0; - virtual void SendTouchEvent( - const TouchEventWithLatencyInfo& touch_event) = 0; - virtual void SendMouseEventImmediately( - const MouseEventWithLatencyInfo& mouse_event) = 0; - virtual void SendTouchEventImmediately( - const TouchEventWithLatencyInfo& touch_event) = 0; - virtual void SendGestureEventImmediately( - const GestureEventWithLatencyInfo& gesture_event) = 0; - - // Returns the oldest queued or in-flight keyboard event sent to the router. - virtual const NativeWebKeyboardEvent* GetLastKeyboardEvent() const = 0; - - // Returns |true| if the caller should immediately forward touch events to the - // router. When |false|, the caller can forego sending touch events, and - // instead consume them directly. - virtual bool ShouldForwardTouchEvent() const = 0; - - // Returns |true| if the caller should immediately forward the provided - // |gesture_event| to the router. - virtual bool ShouldForwardGestureEvent( - const GestureEventWithLatencyInfo& gesture_event) const = 0; - - // Returns |true| if the router has any queued or in-flight gesture events. - virtual bool HasQueuedGestureEvents() const = 0; -}; - -} // namespace content - -#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_H_ |