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

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

Issue 379773003: Simplify the logic in DesktopWindowTreeHostX11 for FocusOut (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 5 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
« no previous file with comments | « no previous file | 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // 100 //
101 // More than one hold can be invoked and each hold must be cancelled by a 101 // More than one hold can be invoked and each hold must be cancelled by a
102 // release before we resume normal operation. 102 // release before we resume normal operation.
103 void HoldPointerMoves(); 103 void HoldPointerMoves();
104 void ReleasePointerMoves(); 104 void ReleasePointerMoves();
105 105
106 // Gets the last location seen in a mouse event in this root window's 106 // Gets the last location seen in a mouse event in this root window's
107 // coordinates. This may return a point outside the root window's bounds. 107 // coordinates. This may return a point outside the root window's bounds.
108 gfx::Point GetLastMouseLocationInRoot() const; 108 gfx::Point GetLastMouseLocationInRoot() const;
109 109
110 void OnHostLostMouseGrab();
111 void OnCursorMovedToRootLocation(const gfx::Point& root_location); 110 void OnCursorMovedToRootLocation(const gfx::Point& root_location);
112 111
113 // TODO(beng): This is only needed because this cleanup needs to happen after 112 // TODO(beng): This is only needed because this cleanup needs to happen after
114 // all other observers are notified of OnWindowDestroying() but 113 // all other observers are notified of OnWindowDestroying() but
115 // before OnWindowDestroyed() is sent (i.e. while the window 114 // before OnWindowDestroyed() is sent (i.e. while the window
116 // hierarchy is still intact). This didn't seem worth adding a 115 // hierarchy is still intact). This didn't seem worth adding a
117 // generic notification for as only this class needs to implement 116 // generic notification for as only this class needs to implement
118 // it. I would however like to find a way to do this via an 117 // it. I would however like to find a way to do this via an
119 // observer. 118 // observer.
120 void OnPostNotifiedWindowDestroying(Window* window); 119 void OnPostNotifiedWindowDestroying(Window* window);
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 261
263 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0. 262 // Used to schedule DispatchHeldEvents() when |move_hold_count_| goes to 0.
264 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_; 263 base::WeakPtrFactory<WindowEventDispatcher> held_event_factory_;
265 264
266 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher); 265 DISALLOW_COPY_AND_ASSIGN(WindowEventDispatcher);
267 }; 266 };
268 267
269 } // namespace aura 268 } // namespace aura
270 269
271 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_ 270 #endif // UI_AURA_WINDOW_EVENT_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window_event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698