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

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

Issue 2854663002: Make EnvInputStateController owned by aura::Env. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 namespace ui { 31 namespace ui {
32 class GestureEvent; 32 class GestureEvent;
33 class GestureRecognizer; 33 class GestureRecognizer;
34 class MouseEvent; 34 class MouseEvent;
35 class TouchEvent; 35 class TouchEvent;
36 } 36 }
37 37
38 namespace aura { 38 namespace aura {
39 class MusMouseLocationUpdater; 39 class MusMouseLocationUpdater;
40 class TestScreen; 40 class TestScreen;
41 class EnvInputStateController;
42 class WindowTargeter; 41 class WindowTargeter;
43 class WindowTreeHost; 42 class WindowTreeHost;
44 43
45 namespace test { 44 namespace test {
46 class WindowEventDispatcherTestApi; 45 class WindowEventDispatcherTestApi;
47 } 46 }
48 47
49 // WindowEventDispatcher orchestrates event dispatch within a window tree 48 // WindowEventDispatcher orchestrates event dispatch within a window tree
50 // owned by WindowTreeHost. WTH also owns the WED. 49 // owned by WindowTreeHost. WTH also owns the WED.
51 // TODO(beng): In progress, remove functionality not directly related to 50 // TODO(beng): In progress, remove functionality not directly related to
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 std::unique_ptr<ui::LocatedEvent> held_move_event_; 258 std::unique_ptr<ui::LocatedEvent> held_move_event_;
260 259
261 // Allowing for reposting of events. Used when exiting context menus. 260 // Allowing for reposting of events. Used when exiting context menus.
262 std::unique_ptr<ui::LocatedEvent> held_repostable_event_; 261 std::unique_ptr<ui::LocatedEvent> held_repostable_event_;
263 262
264 // Set when dispatching a held event. 263 // Set when dispatching a held event.
265 ui::LocatedEvent* dispatching_held_event_; 264 ui::LocatedEvent* dispatching_held_event_;
266 265
267 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_; 266 ScopedObserver<aura::Window, aura::WindowObserver> observer_manager_;
268 267
269 std::unique_ptr<EnvInputStateController> env_controller_;
270
271 std::unique_ptr<MusMouseLocationUpdater> mus_mouse_location_updater_; 268 std::unique_ptr<MusMouseLocationUpdater> mus_mouse_location_updater_;
272 269
273 // The default EventTargeter for WindowEventDispatcher generated events. 270 // The default EventTargeter for WindowEventDispatcher generated events.
274 std::unique_ptr<WindowTargeter> event_targeter_; 271 std::unique_ptr<WindowTargeter> event_targeter_;
275 272
276 // Used to schedule reposting an event. 273 // Used to schedule reposting an event.
277 base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_; 274 base::WeakPtrFactory<WindowEventDispatcher> repost_event_factory_;
278 275
279 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 276 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
280 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; 277 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_;
281 278
282 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); 279 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher);
283 }; 280 };
284 281
285 } // namespace aura 282 } // namespace aura
286 283
287 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 284 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ui/aura/env.cc ('k') | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698