| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_CLIENT_EVENT_CLIENT_H_ |
| 6 #define UI_AURA_CLIENT_EVENT_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/aura/window.h" |
| 11 |
| 12 namespace aura { |
| 13 |
| 14 class Event; |
| 15 class RootWindow; |
| 16 |
| 17 namespace client { |
| 18 |
| 19 // An interface implemented by an object that alters event processing. |
| 20 class AURA_EXPORT EventClient { |
| 21 public: |
| 22 // Returns true if events can be processed by |window| or any of its children. |
| 23 virtual bool CanProcessEventsWithinSubtree(const Window* window) const = 0; |
| 24 |
| 25 protected: |
| 26 virtual ~EventClient() {} |
| 27 }; |
| 28 |
| 29 // Sets/Gets the event client on the RootWindow. |
| 30 AURA_EXPORT void SetEventClient(RootWindow* root_window, EventClient* client); |
| 31 AURA_EXPORT EventClient* GetEventClient(const RootWindow* root_window); |
| 32 |
| 33 } // namespace clients |
| 34 } // namespace aura |
| 35 |
| 36 #endif // UI_AURA_CLIENT_EVENT_CLIENT_H_ |
| OLD | NEW |