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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // Called when a Window is attached or detached from the RootWindow. | 279 // Called when a Window is attached or detached from the RootWindow. |
280 void OnWindowAddedToRootWindow(Window* window); | 280 void OnWindowAddedToRootWindow(Window* window); |
281 void OnWindowRemovedFromRootWindow(Window* window); | 281 void OnWindowRemovedFromRootWindow(Window* window); |
282 | 282 |
283 // Called when a window becomes invisible, either by being removed | 283 // Called when a window becomes invisible, either by being removed |
284 // from root window hierachy, via SetVisible(false) or being destroyed. | 284 // from root window hierachy, via SetVisible(false) or being destroyed. |
285 // |destroyed| is set to true when the window is being destroyed. | 285 // |destroyed| is set to true when the window is being destroyed. |
286 void OnWindowHidden(Window* invisible, bool destroyed); | 286 void OnWindowHidden(Window* invisible, bool destroyed); |
287 | 287 |
288 // Overridden from ui::GestureEventHelper. | 288 // Overridden from ui::GestureEventHelper. |
289 virtual ui::GestureEvent* CreateGestureEvent( | |
290 const ui::GestureEventDetails& details, | |
291 const gfx::Point& location, | |
292 int flags, | |
293 base::Time time, | |
294 unsigned int touch_id_bitfield) OVERRIDE; | |
295 | |
296 virtual ui::TouchEvent* CreateTouchEvent( | |
297 ui::EventType type, | |
298 const gfx::Point& location, | |
299 int touch_id, | |
300 base::TimeDelta time_stamp) OVERRIDE; | |
301 | |
302 virtual bool DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; | 289 virtual bool DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; |
303 virtual bool DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; | 290 virtual bool DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
304 | 291 |
305 // Overridden from ui::LayerAnimationObserver: | 292 // Overridden from ui::LayerAnimationObserver: |
306 virtual void OnLayerAnimationEnded( | 293 virtual void OnLayerAnimationEnded( |
307 ui::LayerAnimationSequence* animation) OVERRIDE; | 294 ui::LayerAnimationSequence* animation) OVERRIDE; |
308 virtual void OnLayerAnimationScheduled( | 295 virtual void OnLayerAnimationScheduled( |
309 ui::LayerAnimationSequence* animation) OVERRIDE; | 296 ui::LayerAnimationSequence* animation) OVERRIDE; |
310 virtual void OnLayerAnimationAborted( | 297 virtual void OnLayerAnimationAborted( |
311 ui::LayerAnimationSequence* animation) OVERRIDE; | 298 ui::LayerAnimationSequence* animation) OVERRIDE; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 385 |
399 CompositorLock* compositor_lock_; | 386 CompositorLock* compositor_lock_; |
400 bool draw_on_compositor_unlock_; | 387 bool draw_on_compositor_unlock_; |
401 | 388 |
402 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 389 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
403 }; | 390 }; |
404 | 391 |
405 } // namespace aura | 392 } // namespace aura |
406 | 393 |
407 #endif // UI_AURA_ROOT_WINDOW_H_ | 394 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |