| 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 UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 5 #ifndef UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 6 #define UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 Window* GetGestureTarget(ui::GestureEvent* event); | 168 Window* GetGestureTarget(ui::GestureEvent* event); |
| 169 | 169 |
| 170 // Overridden from aura::client::CaptureDelegate: | 170 // Overridden from aura::client::CaptureDelegate: |
| 171 virtual void UpdateCapture(Window* old_capture, Window* new_capture) OVERRIDE; | 171 virtual void UpdateCapture(Window* old_capture, Window* new_capture) OVERRIDE; |
| 172 virtual void OnOtherRootGotCapture() OVERRIDE; | 172 virtual void OnOtherRootGotCapture() OVERRIDE; |
| 173 virtual void SetNativeCapture() OVERRIDE; | 173 virtual void SetNativeCapture() OVERRIDE; |
| 174 virtual void ReleaseNativeCapture() OVERRIDE; | 174 virtual void ReleaseNativeCapture() OVERRIDE; |
| 175 | 175 |
| 176 // Overridden from ui::EventProcessor: | 176 // Overridden from ui::EventProcessor: |
| 177 virtual ui::EventTarget* GetRootTarget() OVERRIDE; | 177 virtual ui::EventTarget* GetRootTarget() OVERRIDE; |
| 178 virtual void PrepareEventForDispatch(ui::Event* event) OVERRIDE; | 178 virtual void OnEventProcessingStarted(ui::Event* event) OVERRIDE; |
| 179 | 179 |
| 180 // Overridden from ui::EventDispatcherDelegate. | 180 // Overridden from ui::EventDispatcherDelegate. |
| 181 virtual bool CanDispatchToTarget(ui::EventTarget* target) OVERRIDE; | 181 virtual bool CanDispatchToTarget(ui::EventTarget* target) OVERRIDE; |
| 182 virtual ui::EventDispatchDetails PreDispatchEvent(ui::EventTarget* target, | 182 virtual ui::EventDispatchDetails PreDispatchEvent(ui::EventTarget* target, |
| 183 ui::Event* event) OVERRIDE; | 183 ui::Event* event) OVERRIDE; |
| 184 virtual ui::EventDispatchDetails PostDispatchEvent( | 184 virtual ui::EventDispatchDetails PostDispatchEvent( |
| 185 ui::EventTarget* target, const ui::Event& event) OVERRIDE; | 185 ui::EventTarget* target, const ui::Event& event) OVERRIDE; |
| 186 | 186 |
| 187 // Overridden from ui::GestureEventHelper. | 187 // Overridden from ui::GestureEventHelper. |
| 188 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; | 188 virtual bool CanDispatchToConsumer(ui::GestureConsumer* consumer) OVERRIDE; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. | 264 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. |
| 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; | 265 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; |
| 266 | 266 |
| 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); | 267 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); |
| 268 }; | 268 }; |
| 269 | 269 |
| 270 } // namespace aura | 270 } // namespace aura |
| 271 | 271 |
| 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ | 272 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ |
| OLD | NEW |