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

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

Issue 11308322: events: Start changing EventHandler interface to not return a value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/root_window.cc » ('j') | ui/base/events/event.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ROOT_WINDOW_H_ 5 #ifndef UI_AURA_ROOT_WINDOW_H_
6 #define UI_AURA_ROOT_WINDOW_H_ 6 #define UI_AURA_ROOT_WINDOW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // factor. The RootWindowHostDelegate dispatches events in the physical pixel 273 // factor. The RootWindowHostDelegate dispatches events in the physical pixel
274 // coordinate. But the event processing from RootWindow onwards happen in 274 // coordinate. But the event processing from RootWindow onwards happen in
275 // device-independent pixel coordinate. So it is necessary to update the event 275 // device-independent pixel coordinate. So it is necessary to update the event
276 // received from the host. 276 // received from the host.
277 void TransformEventForDeviceScaleFactor(ui::LocatedEvent* event); 277 void TransformEventForDeviceScaleFactor(ui::LocatedEvent* event);
278 278
279 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|, 279 // Called whenever the mouse moves, tracks the current |mouse_moved_handler_|,
280 // sending exited and entered events as its value changes. 280 // sending exited and entered events as its value changes.
281 void HandleMouseMoved(const ui::MouseEvent& event, Window* target); 281 void HandleMouseMoved(const ui::MouseEvent& event, Window* target);
282 282
283 bool ProcessMouseEvent(Window* target, ui::MouseEvent* event); 283 void ProcessMouseEvent(Window* target, ui::MouseEvent* event);
284 bool ProcessKeyEvent(Window* target, ui::KeyEvent* event); 284 void ProcessKeyEvent(Window* target, ui::KeyEvent* event);
285 bool ProcessScrollEvent(Window* target, ui::ScrollEvent* event); 285 void ProcessScrollEvent(Window* target, ui::ScrollEvent* event);
286 ui::EventResult ProcessTouchEvent(Window* target, ui::TouchEvent* event); 286 void ProcessTouchEvent(Window* target, ui::TouchEvent* event);
287 ui::EventResult ProcessGestureEvent(Window* target, 287 void ProcessGestureEvent(Window* target,
288 ui::GestureEvent* event); 288 ui::GestureEvent* event);
289 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); 289 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures);
290 290
291 // Called when a Window is attached or detached from the RootWindow. 291 // Called when a Window is attached or detached from the RootWindow.
292 void OnWindowAddedToRootWindow(Window* window); 292 void OnWindowAddedToRootWindow(Window* window);
293 void OnWindowRemovedFromRootWindow(Window* window, RootWindow* new_root); 293 void OnWindowRemovedFromRootWindow(Window* window, RootWindow* new_root);
294 294
295 // Called when a window becomes invisible, either by being removed 295 // Called when a window becomes invisible, either by being removed
296 // from root window hierachy, via SetVisible(false) or being destroyed. 296 // from root window hierachy, via SetVisible(false) or being destroyed.
297 // |reason| specifies what triggered the hiding. |new_root| is the new root 297 // |reason| specifies what triggered the hiding. |new_root| is the new root
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_; 399 base::WeakPtrFactory<RootWindow> held_mouse_event_factory_;
400 400
401 scoped_ptr<ui::ViewProp> prop_; 401 scoped_ptr<ui::ViewProp> prop_;
402 402
403 DISALLOW_COPY_AND_ASSIGN(RootWindow); 403 DISALLOW_COPY_AND_ASSIGN(RootWindow);
404 }; 404 };
405 405
406 } // namespace aura 406 } // namespace aura
407 407
408 #endif // UI_AURA_ROOT_WINDOW_H_ 408 #endif // UI_AURA_ROOT_WINDOW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/root_window.cc » ('j') | ui/base/events/event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698