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 #include "services/window_manager/view_event_dispatcher.h" | 5 #include "services/window_manager/view_event_dispatcher.h" |
6 | 6 |
7 #include "mojo/services/view_manager/public/cpp/view.h" | 7 #include "mojo/services/view_manager/cpp/view.h" |
8 #include "services/window_manager/view_target.h" | 8 #include "services/window_manager/view_target.h" |
9 | 9 |
10 namespace window_manager { | 10 namespace window_manager { |
11 | 11 |
12 ViewEventDispatcher::ViewEventDispatcher() | 12 ViewEventDispatcher::ViewEventDispatcher() |
13 : event_dispatch_target_(nullptr), | 13 : event_dispatch_target_(nullptr), |
14 old_dispatch_target_(nullptr) { | 14 old_dispatch_target_(nullptr) { |
15 } | 15 } |
16 | 16 |
17 ViewEventDispatcher::~ViewEventDispatcher() {} | 17 ViewEventDispatcher::~ViewEventDispatcher() {} |
(...skipping 28 matching lines...) Expand all Loading... |
46 ui::EventTarget* target, | 46 ui::EventTarget* target, |
47 const ui::Event& event) { | 47 const ui::Event& event) { |
48 // TODO(erg): Not at all as long as PreDispatchEvent, but still missing core | 48 // TODO(erg): Not at all as long as PreDispatchEvent, but still missing core |
49 // details. | 49 // details. |
50 event_dispatch_target_ = old_dispatch_target_; | 50 event_dispatch_target_ = old_dispatch_target_; |
51 old_dispatch_target_ = nullptr; | 51 old_dispatch_target_ = nullptr; |
52 return ui::EventDispatchDetails(); | 52 return ui::EventDispatchDetails(); |
53 } | 53 } |
54 | 54 |
55 } // namespace window_manager | 55 } // namespace window_manager |
OLD | NEW |