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 DispatchHeldMouseMove(); | 331 void DispatchHeldMouseMove(); |
332 | 332 |
333 // Parses the switch describing the initial size for the host window and | 333 // Parses the switch describing the initial size for the host window and |
334 // returns bounds for the window. | 334 // returns bounds for the window. |
335 gfx::Rect GetInitialHostWindowBounds() const; | 335 gfx::Rect GetInitialHostWindowBounds() const; |
336 | 336 |
337 // Posts a task to send synthesized mouse move event if there | 337 // Posts a task to send synthesized mouse move event if there |
338 // is no a pending task. | 338 // is no a pending task. |
339 void PostMouseMoveEventAfterWindowChange(); | 339 void PostMouseMoveEventAfterWindowChange(); |
340 | 340 |
| 341 // Creates and dispatches synthesized mouse event using the |
| 342 // current mouse location, if specified by |use_current_position| other wise |
| 343 // passes an offscreen location of (-1, -1). |
| 344 void SynthesizeMouseEvent(ui::EventType event_type, |
| 345 bool use_current_position); |
| 346 |
341 // Creates and dispatches synthesized mouse move event using the | 347 // Creates and dispatches synthesized mouse move event using the |
342 // current mouse location. | 348 // current mouse location. |
343 void SynthesizeMouseMoveEvent(); | 349 void SynthesizeMouseMoveEvent(); |
344 | 350 |
345 // Called by CompositorLock. | 351 // Called by CompositorLock. |
346 void UnlockCompositor(); | 352 void UnlockCompositor(); |
347 | 353 |
348 scoped_ptr<ui::Compositor> compositor_; | 354 scoped_ptr<ui::Compositor> compositor_; |
349 | 355 |
350 scoped_ptr<RootWindowHost> host_; | 356 scoped_ptr<RootWindowHost> host_; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 | 403 |
398 CompositorLock* compositor_lock_; | 404 CompositorLock* compositor_lock_; |
399 bool draw_on_compositor_unlock_; | 405 bool draw_on_compositor_unlock_; |
400 | 406 |
401 DISALLOW_COPY_AND_ASSIGN(RootWindow); | 407 DISALLOW_COPY_AND_ASSIGN(RootWindow); |
402 }; | 408 }; |
403 | 409 |
404 } // namespace aura | 410 } // namespace aura |
405 | 411 |
406 #endif // UI_AURA_ROOT_WINDOW_H_ | 412 #endif // UI_AURA_ROOT_WINDOW_H_ |
OLD | NEW |