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

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

Issue 205313002: Revert 258077 "Remove PrepareForShutdown" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 Window* window() { return host()->window(); } 58 Window* window() { return host()->window(); }
59 const Window* window() const { return host()->window(); } 59 const Window* window() const { return host()->window(); }
60 WindowTreeHost* host() { 60 WindowTreeHost* host() {
61 return const_cast<WindowTreeHost*>( 61 return const_cast<WindowTreeHost*>(
62 const_cast<const WindowEventDispatcher*>(this)->host()); 62 const_cast<const WindowEventDispatcher*>(this)->host());
63 } 63 }
64 const WindowTreeHost* host() const { return host_; } 64 const WindowTreeHost* host() const { return host_; }
65 Window* mouse_pressed_handler() { return mouse_pressed_handler_; } 65 Window* mouse_pressed_handler() { return mouse_pressed_handler_; }
66 Window* mouse_moved_handler() { return mouse_moved_handler_; } 66 Window* mouse_moved_handler() { return mouse_moved_handler_; }
67 67
68 // Stop listening events in preparation for shutdown.
69 void PrepareForShutdown();
70
68 // Repost event for re-processing. Used when exiting context menus. 71 // Repost event for re-processing. Used when exiting context menus.
69 // We only support the ET_MOUSE_PRESSED and ET_GESTURE_TAP_DOWN event 72 // We only support the ET_MOUSE_PRESSED and ET_GESTURE_TAP_DOWN event
70 // types (although the latter is currently a no-op). 73 // types (although the latter is currently a no-op).
71 void RepostEvent(const ui::LocatedEvent& event); 74 void RepostEvent(const ui::LocatedEvent& event);
72 75
73 // Invoked when the mouse events get enabled or disabled. 76 // Invoked when the mouse events get enabled or disabled.
74 void OnMouseEventsEnableStateChanged(bool enabled); 77 void OnMouseEventsEnableStateChanged(bool enabled);
75 78
76 void DispatchCancelModeEvent(); 79 void DispatchCancelModeEvent();
77 80
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 258
256 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 259 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
257 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; 260 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_;
258 261
259 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); 262 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher);
260 }; 263 };
261 264
262 } // namespace aura 265 } // namespace aura
263 266
264 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 267 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « trunk/src/ui/aura/remote_window_tree_host_win.cc ('k') | trunk/src/ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698