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

Side by Side Diff: ui/views/controls/menu/menu_runner.cc

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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/views/controls/menu/menu_runner.h" 5 #include "ui/views/controls/menu/menu_runner.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "ui/views/controls/menu/menu_runner_handler.h" 9 #include "ui/views/controls/menu/menu_runner_handler.h"
10 #include "ui/views/controls/menu/menu_runner_impl.h" 10 #include "ui/views/controls/menu/menu_runner_impl.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void MenuRunner::Cancel() { 66 void MenuRunner::Cancel() {
67 impl_->Cancel(); 67 impl_->Cancel();
68 } 68 }
69 69
70 base::TimeDelta MenuRunner::closing_event_time() const { 70 base::TimeDelta MenuRunner::closing_event_time() const {
71 return impl_->GetClosingEventTime(); 71 return impl_->GetClosingEventTime();
72 } 72 }
73 73
74 void MenuRunner::SetRunnerHandler( 74 void MenuRunner::SetRunnerHandler(
75 scoped_ptr<MenuRunnerHandler> runner_handler) { 75 std::unique_ptr<MenuRunnerHandler> runner_handler) {
76 runner_handler_ = std::move(runner_handler); 76 runner_handler_ = std::move(runner_handler);
77 } 77 }
78 78
79 } // namespace views 79 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_runner.h ('k') | ui/views/controls/menu/menu_runner_cocoa_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698