Chromium Code Reviews| Index: ui/aura/event_filter.h |
| =================================================================== |
| --- ui/aura/event_filter.h (revision 0) |
| +++ ui/aura/event_filter.h (revision 0) |
| @@ -0,0 +1,40 @@ |
| +// Copyright (c) 2011 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 UI_AURA_EVENT_FILTER_H_ |
| +#define UI_AURA_EVENT_FILTER_H_ |
| +#pragma once |
| + |
| +#include "base/logging.h" |
| +#include "ui/gfx/point.h" |
|
tfarina
2011/09/20 02:18:01
remove these two unused includes and include basic
|
| + |
| +namespace aura { |
| + |
| +class Window; |
| +class MouseEvent; |
| + |
| +// An object that filters events sent to an owner window, potentially performing |
| +// adjustments to the window's position, size and z-index. |
| +class EventFilter { |
| + public: |
| + explicit EventFilter(Window* owner); |
| + virtual ~EventFilter(); |
| + |
| + // Try to handle |event| (before the owner's delegate gets a chance to). |
| + // Returns true if the event was handled by the WindowManager and should not |
| + // be forwarded to the owner's delegate. |
| + virtual bool OnMouseEvent(Window* target, MouseEvent* event); |
| + |
| + protected: |
| + Window* owner() { return owner_; } |
|
oshima
2011/09/20 05:29:28
const
|
| + |
| + private: |
| + Window* owner_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(EventFilter); |
| +}; |
| + |
| +} // namespace aura |
| + |
| +#endif // UI_AURA_EVENT_FILTER_H_ |
| Property changes on: ui\aura\event_filter.h |
| ___________________________________________________________________ |
| Added: svn:eol-style |
| + LF |