OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TEST_X11_PROPERTY_CHANGE_WAITER_H_ | 5 #ifndef UI_VIEWS_TEST_X11_PROPERTY_CHANGE_WAITER_H_ |
6 #define UI_VIEWS_TEST_X11_PROPERTY_CHANGE_WAITER_H_ | 6 #define UI_VIEWS_TEST_X11_PROPERTY_CHANGE_WAITER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/callback.h" | 12 #include "base/callback.h" |
11 #include "base/macros.h" | 13 #include "base/macros.h" |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "ui/events/platform/platform_event_dispatcher.h" | 14 #include "ui/events/platform/platform_event_dispatcher.h" |
14 #include "ui/events/platform/platform_event_types.h" | 15 #include "ui/events/platform/platform_event_types.h" |
15 #include "ui/gfx/x/x11_types.h" | 16 #include "ui/gfx/x/x11_types.h" |
16 | 17 |
17 namespace ui { | 18 namespace ui { |
18 class ScopedEventDispatcher; | 19 class ScopedEventDispatcher; |
19 class X11AtomCache; | 20 class X11AtomCache; |
20 } | 21 } |
21 | 22 |
22 namespace views { | 23 namespace views { |
(...skipping 25 matching lines...) Expand all Loading... |
48 | 49 |
49 // Whether Wait() should block. | 50 // Whether Wait() should block. |
50 bool wait_; | 51 bool wait_; |
51 | 52 |
52 // Ends the run loop. | 53 // Ends the run loop. |
53 base::Closure quit_closure_; | 54 base::Closure quit_closure_; |
54 | 55 |
55 // The event mask to be restored upon X11PropertyChangeWaiter's destruction. | 56 // The event mask to be restored upon X11PropertyChangeWaiter's destruction. |
56 long old_event_mask_; | 57 long old_event_mask_; |
57 | 58 |
58 scoped_ptr<ui::ScopedEventDispatcher> dispatcher_; | 59 std::unique_ptr<ui::ScopedEventDispatcher> dispatcher_; |
59 | 60 |
60 scoped_ptr<ui::X11AtomCache> atom_cache_; | 61 std::unique_ptr<ui::X11AtomCache> atom_cache_; |
61 | 62 |
62 DISALLOW_COPY_AND_ASSIGN(X11PropertyChangeWaiter); | 63 DISALLOW_COPY_AND_ASSIGN(X11PropertyChangeWaiter); |
63 }; | 64 }; |
64 | 65 |
65 } // namespace views | 66 } // namespace views |
66 | 67 |
67 #endif // UI_VIEWS_TEST_X11_PROPERTY_CHANGE_WAITER_H_ | 68 #endif // UI_VIEWS_TEST_X11_PROPERTY_CHANGE_WAITER_H_ |
OLD | NEW |