| OLD | NEW |
| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // |mouse_moved_handler_|. | 274 // |mouse_moved_handler_|. |
| 275 void DispatchMouseEnterOrExit(const ui::MouseEvent& event, | 275 void DispatchMouseEnterOrExit(const ui::MouseEvent& event, |
| 276 ui::EventType type); | 276 ui::EventType type); |
| 277 | 277 |
| 278 void ProcessEvent(Window* target, ui::Event* event); | 278 void ProcessEvent(Window* target, ui::Event* event); |
| 279 | 279 |
| 280 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 280 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
| 281 | 281 |
| 282 // Called when a Window is attached or detached from the RootWindow. | 282 // Called when a Window is attached or detached from the RootWindow. |
| 283 void OnWindowAddedToRootWindow(Window* window); | 283 void OnWindowAddedToRootWindow(Window* window); |
| 284 void OnWindowRemovedFromRootWindow(Window* window, RootWindow* new_root); | 284 void OnWindowRemovedFromRootWindow(Window* window, Window* new_root); |
| 285 | 285 |
| 286 // Called when a window becomes invisible, either by being removed | 286 // Called when a window becomes invisible, either by being removed |
| 287 // from root window hierarchy, via SetVisible(false) or being destroyed. | 287 // from root window hierarchy, via SetVisible(false) or being destroyed. |
| 288 // |reason| specifies what triggered the hiding. | 288 // |reason| specifies what triggered the hiding. |
| 289 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); | 289 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); |
| 290 | 290 |
| 291 // Cleans up the gesture recognizer for all windows in |window| (including | 291 // Cleans up the gesture recognizer for all windows in |window| (including |
| 292 // |window| itself). | 292 // |window| itself). |
| 293 void CleanupGestureRecognizerState(Window* window); | 293 void CleanupGestureRecognizerState(Window* window); |
| 294 | 294 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 base::WeakPtrFactory<RootWindow> held_event_factory_; | 405 base::WeakPtrFactory<RootWindow> held_event_factory_; |
| 406 | 406 |
| 407 base::WeakPtrFactory<RootWindow> repostable_event_factory_; | 407 base::WeakPtrFactory<RootWindow> repostable_event_factory_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 409 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 } // namespace aura | 412 } // namespace aura |
| 413 | 413 |
| 414 #endif // UI_AURA_ROOT_WINDOW_H_ | 414 #endif // UI_AURA_ROOT_WINDOW_H_ |
| OLD | NEW |