diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 19:30:27 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-23 19:30:27 +0000 |
commit | 262f8bd0d00cd8dd9aa679338467d3104cc0d44c (patch) | |
tree | 9e65804202ea972658ada1e86d3c6f5fa508cf7c /ui/aura/client/event_client.h | |
parent | 7de00b2456fe566ed86da0543dceda3204110148 (diff) | |
download | chromium_src-262f8bd0d00cd8dd9aa679338467d3104cc0d44c.zip chromium_src-262f8bd0d00cd8dd9aa679338467d3104cc0d44c.tar.gz chromium_src-262f8bd0d00cd8dd9aa679338467d3104cc0d44c.tar.bz2 |
Remove stops_event_propagation from Window, since it's broken.
Changes it to be implemented by the Aura client, via a new interface EventClient.
The client can determine whether or not a given window and its subtree can receive events.
I also cleaned up the way screen locking is entered/exited via the delegate, and some stuff in ash/shell.
http://crbug.com/119347
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9788001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128553 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/client/event_client.h')
-rw-r--r-- | ui/aura/client/event_client.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/ui/aura/client/event_client.h b/ui/aura/client/event_client.h new file mode 100644 index 0000000..caf3a2b --- /dev/null +++ b/ui/aura/client/event_client.h @@ -0,0 +1,36 @@ +// 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 UI_AURA_CLIENT_EVENT_CLIENT_H_ +#define UI_AURA_CLIENT_EVENT_CLIENT_H_ +#pragma once + +#include "ui/aura/aura_export.h" +#include "ui/aura/window.h" + +namespace aura { + +class Event; +class RootWindow; + +namespace client { + +// An interface implemented by an object that alters event processing. +class AURA_EXPORT EventClient { + public: + // Returns true if events can be processed by |window| or any of its children. + virtual bool CanProcessEventsWithinSubtree(const Window* window) const = 0; + + protected: + virtual ~EventClient() {} +}; + +// Sets/Gets the event client on the RootWindow. +AURA_EXPORT void SetEventClient(RootWindow* root_window, EventClient* client); +AURA_EXPORT EventClient* GetEventClient(const RootWindow* root_window); + +} // namespace clients +} // namespace aura + +#endif // UI_AURA_CLIENT_EVENT_CLIENT_H_ |