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

Side by Side Diff: ui/views/test/x11_property_change_waiter.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 months 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
« no previous file with comments | « ui/views/test/webview_test_helper.h ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/views/test/webview_test_helper.h ('k') | ui/views/touchui/touch_selection_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698