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

Unified Diff: ash/event_rewriter_delegate.h

Issue 165463002: event-rewrite: Clean up how events are rewritten. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix-debug Created 6 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 | « ash/ash.gyp ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/event_rewriter_delegate.h
diff --git a/ash/event_rewriter_delegate.h b/ash/event_rewriter_delegate.h
deleted file mode 100644
index c54c9a37078667a19368dad11c5bc125b9e5c50d..0000000000000000000000000000000000000000
--- a/ash/event_rewriter_delegate.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright (c) 2012 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 ASH_EVENT_REWRITER_DELEGATE_H_
-#define ASH_EVENT_REWRITER_DELEGATE_H_
-
-namespace ui {
-class KeyEvent;
-class LocatedEvent;
-} // namespace aura
-
-namespace ash {
-
-// Delegate for rewriting or filtering an event.
-class EventRewriterDelegate {
- public:
- enum Action {
- ACTION_REWRITE_EVENT,
- ACTION_DROP_EVENT,
- };
-
- virtual ~EventRewriterDelegate() {}
-
- // A derived class can do either of the following:
- // 1) Just return ACTION_DROP_EVENT to drop the |event|.
- // 2) Rewrite the |event| and return ACTION_REWRITE_EVENT.
- virtual Action RewriteOrFilterKeyEvent(ui::KeyEvent* event) = 0;
- virtual Action RewriteOrFilterLocatedEvent(ui::LocatedEvent* event) = 0;
-};
-
-} // namespace ash
-
-#endif // ASH_EVENT_REWRITER_DELEGATE_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698