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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // from root window hierachy, via SetVisible(false) or being destroyed. | 285 // from root window hierachy, via SetVisible(false) or being destroyed. |
286 // |destroyed| is set to true when the window is being destroyed. | 286 // |destroyed| is set to true when the window is being destroyed. |
287 void OnWindowHidden(Window* invisible, bool destroyed); | 287 void OnWindowHidden(Window* invisible, bool destroyed); |
288 | 288 |
289 // Overridden from Window: | 289 // Overridden from Window: |
290 virtual bool CanFocus() const OVERRIDE; | 290 virtual bool CanFocus() const OVERRIDE; |
291 virtual bool CanReceiveEvents() const OVERRIDE; | 291 virtual bool CanReceiveEvents() const OVERRIDE; |
292 virtual internal::FocusManager* GetFocusManager() OVERRIDE; | 292 virtual internal::FocusManager* GetFocusManager() OVERRIDE; |
293 | 293 |
294 // Overridden from ui::GestureEventHelper. | 294 // Overridden from ui::GestureEventHelper. |
295 virtual ui::GestureEvent* CreateGestureEvent(ui::EventType type, | 295 virtual ui::GestureEvent* CreateGestureEvent( |
| 296 ui::EventType type, |
296 const gfx::Point& location, | 297 const gfx::Point& location, |
297 int flags, | 298 int flags, |
298 const base::Time time, | 299 base::Time time, |
299 float param_first, | 300 float param_first, |
300 float param_second, | 301 float param_second, |
301 unsigned int touch_id_bitfield) OVERRIDE; | 302 unsigned int touch_id_bitfield) OVERRIDE; |
302 | 303 |
303 virtual ui::TouchEvent* CreateTouchEvent(ui::EventType type, | 304 virtual ui::TouchEvent* CreateTouchEvent( |
304 const gfx::Point& location, | 305 ui::EventType type, |
305 int touch_id, | 306 const gfx::Point& location, |
306 base::TimeDelta time_stamp) OVERRIDE; | 307 int touch_id, |
| 308 base::TimeDelta time_stamp) OVERRIDE; |
307 | 309 |
308 virtual bool DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; | 310 virtual bool DispatchLongPressGestureEvent(ui::GestureEvent* event) OVERRIDE; |
309 virtual bool DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; | 311 virtual bool DispatchCancelTouchEvent(ui::TouchEvent* event) OVERRIDE; |
310 | 312 |
311 // Overridden from ui::LayerAnimationObserver: | 313 // Overridden from ui::LayerAnimationObserver: |
312 virtual void OnLayerAnimationEnded( | 314 virtual void OnLayerAnimationEnded( |
313 ui::LayerAnimationSequence* animation) OVERRIDE; | 315 ui::LayerAnimationSequence* animation) OVERRIDE; |
314 virtual void OnLayerAnimationScheduled( | 316 virtual void OnLayerAnimationScheduled( |
315 ui::LayerAnimationSequence* animation) OVERRIDE; | 317 ui::LayerAnimationSequence* animation) OVERRIDE; |
316 virtual void OnLayerAnimationAborted( | 318 virtual void OnLayerAnimationAborted( |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 bool draw_on_compositor_unlock_; | 405 bool draw_on_compositor_unlock_; |
404 | 406 |
405 int draw_trace_count_; | 407 int draw_trace_count_; |
406 | 408 |
407 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 409 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
408 }; | 410 }; |
409 | 411 |
410 } // namespace aura | 412 } // namespace aura |
411 | 413 |
412 #endif // UI_AURA_ROOT_WINDOW_H_ | 414 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |