| 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 "ui/aura/window_event_dispatcher.h" | 5 #include "ui/aura/window_event_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 : host_(host), | 76 : host_(host), |
| 77 touch_ids_down_(0), | 77 touch_ids_down_(0), |
| 78 mouse_pressed_handler_(NULL), | 78 mouse_pressed_handler_(NULL), |
| 79 mouse_moved_handler_(NULL), | 79 mouse_moved_handler_(NULL), |
| 80 event_dispatch_target_(NULL), | 80 event_dispatch_target_(NULL), |
| 81 old_dispatch_target_(NULL), | 81 old_dispatch_target_(NULL), |
| 82 synthesize_mouse_move_(false), | 82 synthesize_mouse_move_(false), |
| 83 move_hold_count_(0), | 83 move_hold_count_(0), |
| 84 dispatching_held_event_(false), | 84 dispatching_held_event_(false), |
| 85 observer_manager_(this), | 85 observer_manager_(this), |
| 86 repost_event_factory_(this), | 86 held_event_factory_(this), |
| 87 held_event_factory_(this) { | 87 repost_event_factory_(this) { |
| 88 ui::GestureRecognizer::Get()->AddGestureEventHelper(this); | 88 ui::GestureRecognizer::Get()->AddGestureEventHelper(this); |
| 89 Env::GetInstance()->AddObserver(this); | 89 Env::GetInstance()->AddObserver(this); |
| 90 } | 90 } |
| 91 | 91 |
| 92 WindowEventDispatcher::~WindowEventDispatcher() { | 92 WindowEventDispatcher::~WindowEventDispatcher() { |
| 93 TRACE_EVENT0("shutdown", "WindowEventDispatcher::Destructor"); | 93 TRACE_EVENT0("shutdown", "WindowEventDispatcher::Destructor"); |
| 94 Env::GetInstance()->RemoveObserver(this); | 94 Env::GetInstance()->RemoveObserver(this); |
| 95 ui::GestureRecognizer::Get()->RemoveGestureEventHelper(this); | 95 ui::GestureRecognizer::Get()->RemoveGestureEventHelper(this); |
| 96 } | 96 } |
| 97 | 97 |
| (...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 | 901 |
| 902 default: | 902 default: |
| 903 NOTREACHED(); | 903 NOTREACHED(); |
| 904 break; | 904 break; |
| 905 } | 905 } |
| 906 | 906 |
| 907 PreDispatchLocatedEvent(target, event); | 907 PreDispatchLocatedEvent(target, event); |
| 908 } | 908 } |
| 909 | 909 |
| 910 } // namespace aura | 910 } // namespace aura |
| OLD | NEW |