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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 } | 25 } |
26 | 26 |
27 namespace ui { | 27 namespace ui { |
28 class MouseEvent; | 28 class MouseEvent; |
29 class ScopedEventDispatcher; | 29 class ScopedEventDispatcher; |
30 class XScopedEventSelector; | 30 class XScopedEventSelector; |
31 } | 31 } |
32 | 32 |
33 namespace views { | 33 namespace views { |
34 | 34 |
35 class Widget; | |
36 | |
37 // Runs a nested message loop and grabs the mouse. This is used to implement | 35 // Runs a nested message loop and grabs the mouse. This is used to implement |
38 // dragging. | 36 // dragging. |
39 class X11WholeScreenMoveLoop : public X11MoveLoop, | 37 class X11WholeScreenMoveLoop : public X11MoveLoop, |
40 public ui::PlatformEventDispatcher { | 38 public ui::PlatformEventDispatcher { |
41 public: | 39 public: |
42 explicit X11WholeScreenMoveLoop(X11MoveLoopDelegate* delegate); | 40 explicit X11WholeScreenMoveLoop(X11MoveLoopDelegate* delegate); |
43 ~X11WholeScreenMoveLoop() override; | 41 ~X11WholeScreenMoveLoop() override; |
44 | 42 |
45 // ui:::PlatformEventDispatcher: | 43 // ui:::PlatformEventDispatcher: |
46 bool CanDispatchEvent(const ui::PlatformEvent& event) override; | 44 bool CanDispatchEvent(const ui::PlatformEvent& event) override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 92 |
95 std::unique_ptr<ui::MouseEvent> last_motion_in_screen_; | 93 std::unique_ptr<ui::MouseEvent> last_motion_in_screen_; |
96 base::WeakPtrFactory<X11WholeScreenMoveLoop> weak_factory_; | 94 base::WeakPtrFactory<X11WholeScreenMoveLoop> weak_factory_; |
97 | 95 |
98 DISALLOW_COPY_AND_ASSIGN(X11WholeScreenMoveLoop); | 96 DISALLOW_COPY_AND_ASSIGN(X11WholeScreenMoveLoop); |
99 }; | 97 }; |
100 | 98 |
101 } // namespace views | 99 } // namespace views |
102 | 100 |
103 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ | 101 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_X11_WHOLE_SCREEN_MOVE_LOOP_H_ |
OLD | NEW |