OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 Window CreateDragInputWindow(XDisplay* display); | 55 Window CreateDragInputWindow(XDisplay* display); |
56 | 56 |
57 // Creates a window to show the drag image during the drag. | 57 // Creates a window to show the drag image during the drag. |
58 void CreateDragImageWindow(); | 58 void CreateDragImageWindow(); |
59 | 59 |
60 X11WholeScreenMoveLoopDelegate* delegate_; | 60 X11WholeScreenMoveLoopDelegate* delegate_; |
61 | 61 |
62 // Are we running a nested message loop from RunMoveLoop()? | 62 // Are we running a nested message loop from RunMoveLoop()? |
63 bool in_move_loop_; | 63 bool in_move_loop_; |
64 | 64 |
| 65 bool should_reset_mouse_flags_; |
| 66 |
65 // An invisible InputOnly window . We create this window so we can track the | 67 // An invisible InputOnly window . We create this window so we can track the |
66 // cursor wherever it goes on screen during a drag, since normal windows | 68 // cursor wherever it goes on screen during a drag, since normal windows |
67 // don't receive pointer motion events outside of their bounds. | 69 // don't receive pointer motion events outside of their bounds. |
68 ::Window grab_input_window_; | 70 ::Window grab_input_window_; |
69 | 71 |
70 base::Closure quit_closure_; | 72 base::Closure quit_closure_; |
71 | 73 |
72 // A Widget is created during the drag if there is an image available to be | 74 // A Widget is created during the drag if there is an image available to be |
73 // used during the drag. | 75 // used during the drag. |
74 scoped_ptr<Widget> drag_widget_; | 76 scoped_ptr<Widget> drag_widget_; |
75 gfx::ImageSkia drag_image_; | 77 gfx::ImageSkia drag_image_; |
76 gfx::Vector2dF drag_offset_; | 78 gfx::Vector2dF drag_offset_; |
77 | 79 |
78 DISALLOW_COPY_AND_ASSIGN(X11WholeScreenMoveLoop); | 80 DISALLOW_COPY_AND_ASSIGN(X11WholeScreenMoveLoop); |
79 }; | 81 }; |
80 | 82 |
81 } // namespace views | 83 } // namespace views |
82 | 84 |
83 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ | 85 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ |
OLD | NEW |