| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ | 5 #ifndef SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ |
| 6 #define SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ | 6 #define SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/events/event_processor.h" | 9 #include "ui/events/event_processor.h" |
| 10 #include "ui/events/event_target.h" | 10 #include "ui/events/event_target.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace window_manager { |
| 13 | 13 |
| 14 class ViewTarget; | 14 class ViewTarget; |
| 15 | 15 |
| 16 class ViewEventDispatcher : public ui::EventProcessor { | 16 class ViewEventDispatcher : public ui::EventProcessor { |
| 17 public: | 17 public: |
| 18 ViewEventDispatcher(); | 18 ViewEventDispatcher(); |
| 19 ~ViewEventDispatcher() override; | 19 ~ViewEventDispatcher() override; |
| 20 | 20 |
| 21 void SetRootViewTarget(ViewTarget* root_view_target); | 21 void SetRootViewTarget(ViewTarget* root_view_target); |
| 22 | 22 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 35 // We keep a weak reference to ViewTarget*, which corresponds to the root of | 35 // We keep a weak reference to ViewTarget*, which corresponds to the root of |
| 36 // the mojo::View tree. | 36 // the mojo::View tree. |
| 37 ViewTarget* root_view_target_; | 37 ViewTarget* root_view_target_; |
| 38 | 38 |
| 39 ViewTarget* event_dispatch_target_; | 39 ViewTarget* event_dispatch_target_; |
| 40 ViewTarget* old_dispatch_target_; | 40 ViewTarget* old_dispatch_target_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(ViewEventDispatcher); | 42 DISALLOW_COPY_AND_ASSIGN(ViewEventDispatcher); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace mojo | 45 } // namespace window_manager |
| 46 | 46 |
| 47 #endif // SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ | 47 #endif // SERVICES_WINDOW_MANAGER_VIEW_EVENT_DISPATCHER_H_ |
| OLD | NEW |