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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 void ProcessEvent(Window* target, ui::Event* event); | 331 void ProcessEvent(Window* target, ui::Event* event); |
332 | 332 |
333 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 333 bool ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
334 | 334 |
335 // Called when a Window is attached or detached from the RootWindow. | 335 // Called when a Window is attached or detached from the RootWindow. |
336 void OnWindowAddedToRootWindow(Window* window); | 336 void OnWindowAddedToRootWindow(Window* window); |
337 void OnWindowRemovedFromRootWindow(Window* window, RootWindow* new_root); | 337 void OnWindowRemovedFromRootWindow(Window* window, RootWindow* new_root); |
338 | 338 |
339 // Called when a window becomes invisible, either by being removed | 339 // Called when a window becomes invisible, either by being removed |
340 // from root window hierarchy, via SetVisible(false) or being destroyed. | 340 // from root window hierarchy, via SetVisible(false) or being destroyed. |
341 // |reason| specifies what triggered the hiding. |new_root| is the new root | 341 // |reason| specifies what triggered the hiding. |
342 // window, and may be NULL. | 342 void OnWindowHidden(Window* invisible, WindowHiddenReason reason); |
343 void OnWindowHidden(Window* invisible, | |
344 WindowHiddenReason reason, | |
345 RootWindow* new_root); | |
346 | 343 |
347 // Cleans up the gesture recognizer for all windows in |window| (including | 344 // Cleans up the gesture recognizer for all windows in |window| (including |
348 // |window| itself). | 345 // |window| itself). |
349 void CleanupGestureRecognizerState(Window* window); | 346 void CleanupGestureRecognizerState(Window* window); |
350 | 347 |
351 // Updates the root window's size using |host_size|, current | 348 // Updates the root window's size using |host_size|, current |
352 // transform and insets. | 349 // transform and insets. |
353 void UpdateRootWindowSize(const gfx::Size& host_size); | 350 void UpdateRootWindowSize(const gfx::Size& host_size); |
354 | 351 |
355 // Overridden from ui::EventDispatcherDelegate. | 352 // Overridden from ui::EventDispatcherDelegate. |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 scoped_ptr<ui::ViewProp> prop_; | 452 scoped_ptr<ui::ViewProp> prop_; |
456 | 453 |
457 scoped_ptr<RootWindowTransformer> transformer_; | 454 scoped_ptr<RootWindowTransformer> transformer_; |
458 | 455 |
459 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 456 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
460 }; | 457 }; |
461 | 458 |
462 } // namespace aura | 459 } // namespace aura |
463 | 460 |
464 #endif // UI_AURA_ROOT_WINDOW_H_ | 461 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |