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

Unified Diff: ui/aura/event_filter.h

Issue 7970001: Better Z-index support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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: 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

Powered by Google App Engine
This is Rietveld 408576698