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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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/window.h ('k') | ui/aura/window_event_dispatcher_unittest.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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // from root window hierarchy, via SetVisible(false) or being destroyed. 161 // from root window hierarchy, via SetVisible(false) or being destroyed.
162 // |reason| specifies what triggered the hiding. Note that becoming invisible 162 // |reason| specifies what triggered the hiding. Note that becoming invisible
163 // will cause a window to lose capture and some windows may destroy themselves 163 // will cause a window to lose capture and some windows may destroy themselves
164 // on capture (like DragDropTracker). 164 // on capture (like DragDropTracker).
165 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); 165 void OnWindowHidden(Window* invisible, WindowHiddenReason reason);
166 166
167 // Returns a target window for the given gesture event. 167 // Returns a target window for the given gesture event.
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 OnEventProcessingStarted(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;
189 virtual void DispatchGestureEvent(ui::GestureEvent* event) OVERRIDE; 189 virtual void DispatchGestureEvent(ui::GestureEvent* event) override;
190 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; 190 virtual void DispatchCancelTouchEvent(ui::TouchEvent* event) override;
191 191
192 // Overridden from WindowObserver: 192 // Overridden from WindowObserver:
193 virtual void OnWindowDestroying(Window* window) OVERRIDE; 193 virtual void OnWindowDestroying(Window* window) override;
194 virtual void OnWindowDestroyed(Window* window) OVERRIDE; 194 virtual void OnWindowDestroyed(Window* window) override;
195 virtual void OnWindowAddedToRootWindow(Window* window) OVERRIDE; 195 virtual void OnWindowAddedToRootWindow(Window* window) override;
196 virtual void OnWindowRemovingFromRootWindow(Window* window, 196 virtual void OnWindowRemovingFromRootWindow(Window* window,
197 Window* new_root) OVERRIDE; 197 Window* new_root) override;
198 virtual void OnWindowVisibilityChanging(Window* window, 198 virtual void OnWindowVisibilityChanging(Window* window,
199 bool visible) OVERRIDE; 199 bool visible) override;
200 virtual void OnWindowVisibilityChanged(Window* window, bool visible) OVERRIDE; 200 virtual void OnWindowVisibilityChanged(Window* window, bool visible) override;
201 virtual void OnWindowBoundsChanged(Window* window, 201 virtual void OnWindowBoundsChanged(Window* window,
202 const gfx::Rect& old_bounds, 202 const gfx::Rect& old_bounds,
203 const gfx::Rect& new_bounds) OVERRIDE; 203 const gfx::Rect& new_bounds) override;
204 virtual void OnWindowTransforming(Window* window) OVERRIDE; 204 virtual void OnWindowTransforming(Window* window) override;
205 virtual void OnWindowTransformed(Window* window) OVERRIDE; 205 virtual void OnWindowTransformed(Window* window) override;
206 206
207 // Overridden from EnvObserver: 207 // Overridden from EnvObserver:
208 virtual void OnWindowInitialized(Window* window) OVERRIDE; 208 virtual void OnWindowInitialized(Window* window) override;
209 209
210 // We hold and aggregate mouse drags and touch moves as a way of throttling 210 // We hold and aggregate mouse drags and touch moves as a way of throttling
211 // resizes when HoldMouseMoves() is called. The following methods are used to 211 // resizes when HoldMouseMoves() is called. The following methods are used to
212 // dispatch held and newly incoming mouse and touch events, typically when an 212 // dispatch held and newly incoming mouse and touch events, typically when an
213 // event other than one of these needs dispatching or a matching 213 // event other than one of these needs dispatching or a matching
214 // ReleaseMouseMoves()/ReleaseTouchMoves() is called. NOTE: because these 214 // ReleaseMouseMoves()/ReleaseTouchMoves() is called. NOTE: because these
215 // methods dispatch events from WindowTreeHost the coordinates are in terms of 215 // methods dispatch events from WindowTreeHost the coordinates are in terms of
216 // the root. 216 // the root.
217 ui::EventDispatchDetails DispatchHeldEvents() WARN_UNUSED_RESULT; 217 ui::EventDispatchDetails DispatchHeldEvents() WARN_UNUSED_RESULT;
218 218
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_event_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698