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

Unified Diff: content/browser/renderer_host/input/browser_input_event.cc

Issue 25385002: Remove the BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Space removal Created 7 years, 3 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/browser/renderer_host/input/browser_input_event.cc
diff --git a/content/browser/renderer_host/input/browser_input_event.cc b/content/browser/renderer_host/input/browser_input_event.cc
deleted file mode 100644
index 276245e3526ddf0e3caedac6ffe91eb65f5f7142..0000000000000000000000000000000000000000
--- a/content/browser/renderer_host/input/browser_input_event.cc
+++ /dev/null
@@ -1,47 +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.
-
-#include "content/browser/renderer_host/input/browser_input_event.h"
-
-#include "content/common/input/web_input_event_payload.h"
-
-namespace content {
-
-BrowserInputEvent::BrowserInputEvent(BrowserInputEventClient* client)
- : client_(client) {}
-
-BrowserInputEvent::~BrowserInputEvent() {}
-
-scoped_ptr<BrowserInputEvent> BrowserInputEvent::Create(
- int64 id,
- scoped_ptr<InputEvent::Payload> payload,
- BrowserInputEventClient* client) {
- DCHECK(client);
- scoped_ptr<BrowserInputEvent> event(new BrowserInputEvent(client));
- event->Initialize(id, payload.Pass());
- return event.Pass();
-}
-
-void BrowserInputEvent::OnDispatched(
- InputEventDisposition disposition,
- ScopedVector<BrowserInputEvent>* followup_events) {
- DCHECK(followup_events);
-
- bool event_consumed =
- disposition == INPUT_EVENT_MAIN_THREAD_CONSUMED ||
- disposition == INPUT_EVENT_IMPL_THREAD_CONSUMED ||
- disposition == INPUT_EVENT_MAIN_THREAD_PREVENT_DEFAULTED;
-
- if (!event_consumed && CanCreateFollowupEvents())
- client_->OnDispatched(*this, disposition, followup_events);
- else
- client_->OnDispatched(*this, disposition);
-}
-
-bool BrowserInputEvent::CanCreateFollowupEvents() const {
- return payload()->GetType() == InputEvent::Payload::WEB_INPUT_EVENT &&
- WebInputEventPayload::Cast(payload())->CanCreateFollowupEvents();
-}
-
-} // namespace content
« no previous file with comments | « content/browser/renderer_host/input/browser_input_event.h ('k') | content/browser/renderer_host/input/buffered_input_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698