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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 // Posts a task to send synthesized mouse move event if there | 391 // Posts a task to send synthesized mouse move event if there |
392 // is no a pending task. | 392 // is no a pending task. |
393 void PostMouseMoveEventAfterWindowChange(); | 393 void PostMouseMoveEventAfterWindowChange(); |
394 | 394 |
395 // Creates and dispatches synthesized mouse move event using the | 395 // Creates and dispatches synthesized mouse move event using the |
396 // current mouse location. | 396 // current mouse location. |
397 void SynthesizeMouseMoveEvent(); | 397 void SynthesizeMouseMoveEvent(); |
398 | 398 |
399 gfx::Transform GetInverseRootTransform() const; | 399 gfx::Transform GetInverseRootTransform() const; |
400 | 400 |
| 401 // Reposts the gesture event to the Window which is a target for the event |
| 402 // passed in. |
| 403 bool DispatchGestureEventRepost(ui::GestureEvent* event); |
| 404 |
401 scoped_ptr<ui::Compositor> compositor_; | 405 scoped_ptr<ui::Compositor> compositor_; |
402 | 406 |
403 scoped_ptr<RootWindowHost> host_; | 407 scoped_ptr<RootWindowHost> host_; |
404 | 408 |
405 // Used to schedule painting. | 409 // Used to schedule painting. |
406 base::WeakPtrFactory<RootWindow> schedule_paint_factory_; | 410 base::WeakPtrFactory<RootWindow> schedule_paint_factory_; |
407 | 411 |
408 // Use to post mouse move event. | 412 // Use to post mouse move event. |
409 base::WeakPtrFactory<RootWindow> event_factory_; | 413 base::WeakPtrFactory<RootWindow> event_factory_; |
410 | 414 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 scoped_ptr<ui::ViewProp> prop_; | 448 scoped_ptr<ui::ViewProp> prop_; |
445 | 449 |
446 scoped_ptr<RootWindowTransformer> transformer_; | 450 scoped_ptr<RootWindowTransformer> transformer_; |
447 | 451 |
448 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 452 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
449 }; | 453 }; |
450 | 454 |
451 } // namespace aura | 455 } // namespace aura |
452 | 456 |
453 #endif // UI_AURA_ROOT_WINDOW_H_ | 457 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |