| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_WM_EVENT_CLIENT_IMPL_H_ | 5 #ifndef ASH_WM_EVENT_CLIENT_IMPL_H_ |
| 6 #define ASH_WM_EVENT_CLIENT_IMPL_H_ | 6 #define ASH_WM_EVENT_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ui/aura/client/event_client.h" | 9 #include "ui/aura/client/event_client.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class RootWindow; | 12 class RootWindow; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace ash { | 15 namespace ash { |
| 16 namespace internal { | 16 namespace internal { |
| 17 | 17 |
| 18 class EventClientImpl : public aura::client::EventClient { | 18 class EventClientImpl : public aura::client::EventClient { |
| 19 public: | 19 public: |
| 20 EventClientImpl(); | 20 explicit EventClientImpl(aura::RootWindow* root_window); |
| 21 virtual ~EventClientImpl(); | 21 virtual ~EventClientImpl(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 // Overridden from aura::client::EventClient: | 24 // Overridden from aura::client::EventClient: |
| 25 virtual bool CanProcessEventsWithinSubtree( | 25 virtual bool CanProcessEventsWithinSubtree( |
| 26 const aura::Window* window) const OVERRIDE; | 26 const aura::Window* window) const OVERRIDE; |
| 27 | 27 |
| 28 aura::RootWindow* root_window_; |
| 29 |
| 28 DISALLOW_COPY_AND_ASSIGN(EventClientImpl); | 30 DISALLOW_COPY_AND_ASSIGN(EventClientImpl); |
| 29 }; | 31 }; |
| 30 | 32 |
| 31 } // namespace internal | 33 } // namespace internal |
| 32 } // namespace ash | 34 } // namespace ash |
| 33 | 35 |
| 34 #endif // ASH_WM_EVENT_CLIENT_IMPL_H_ | 36 #endif // ASH_WM_EVENT_CLIENT_IMPL_H_ |
| OLD | NEW |