Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: ui/views/widget/desktop_aura/x11_whole_screen_move_loop.h

Issue 2484863005: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Fix another conflict Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/x11_move_loop_delegate.h ('k') | ui/views/widget/desktop_aura/x11_window_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698