Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ui/aura/window_event_dispatcher.h

Issue 2779093004: Update event states in Env when target window has been destroyed. (Closed)
Patch Set: test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // event dispatch. 52 // event dispatch.
53 class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor, 53 class AURA_EXPORT WindowEventDispatcher : public ui::EventProcessor,
54 public ui::GestureEventHelper, 54 public ui::GestureEventHelper,
55 public client::CaptureDelegate, 55 public client::CaptureDelegate,
56 public WindowObserver, 56 public WindowObserver,
57 public EnvObserver { 57 public EnvObserver {
58 public: 58 public:
59 explicit WindowEventDispatcher(WindowTreeHost* host); 59 explicit WindowEventDispatcher(WindowTreeHost* host);
60 ~WindowEventDispatcher() override; 60 ~WindowEventDispatcher() override;
61 61
62 EnvInputStateController* env_controller() { return env_controller_.get(); }
63
62 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } 64 Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
63 Window* mouse_moved_handler() { return mouse_moved_handler_; } 65 Window* mouse_moved_handler() { return mouse_moved_handler_; }
64 66
65 // Overridden from ui::EventProcessor: 67 // Overridden from ui::EventProcessor:
66 ui::EventTargeter* GetDefaultEventTargeter() override; 68 ui::EventTargeter* GetDefaultEventTargeter() override;
67 69
68 // Repost event for re-processing. Used when exiting context menus. 70 // Repost event for re-processing. Used when exiting context menus.
69 // We support the ET_MOUSE_PRESSED, ET_TOUCH_PRESSED and ET_GESTURE_TAP_DOWN 71 // We support the ET_MOUSE_PRESSED, ET_TOUCH_PRESSED and ET_GESTURE_TAP_DOWN
70 // event types (although the latter is currently a no-op). 72 // event types (although the latter is currently a no-op).
71 void RepostEvent(const ui::LocatedEvent* event); 73 void RepostEvent(const ui::LocatedEvent* event);
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 280
279 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 281 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
280 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; 282 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_;
281 283
282 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); 284 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher);
283 }; 285 };
284 286
285 } // namespace aura 287 } // namespace aura
286 288
287 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 289 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_
OLDNEW
« ui/aura/mus/window_tree_client.cc ('K') | « ui/aura/mus/window_tree_client_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698