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

Side by Side Diff: remoting/host/single_window_input_injector_mac.cc

Issue 609923004: Cleanup usage of scoped_ptr<> in remoting for C++11 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 #include "remoting/host/single_window_input_injector.h" 5 #include "remoting/host/single_window_input_injector.h"
6 6
7 #include <ApplicationServices/ApplicationServices.h> 7 #include <ApplicationServices/ApplicationServices.h>
8 #include <Carbon/Carbon.h> 8 #include <Carbon/Carbon.h>
9 9
10 #include "base/mac/foundation_util.h" 10 #include "base/mac/foundation_util.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 153 }
154 154
155 return CGRectNull; 155 return CGRectNull;
156 } 156 }
157 157
158 scoped_ptr<InputInjector> SingleWindowInputInjector::CreateForWindow( 158 scoped_ptr<InputInjector> SingleWindowInputInjector::CreateForWindow(
159 webrtc::WindowId window_id, 159 webrtc::WindowId window_id,
160 scoped_ptr<InputInjector> input_injector) { 160 scoped_ptr<InputInjector> input_injector) {
161 scoped_ptr<SingleWindowInputInjectorMac> injector( 161 scoped_ptr<SingleWindowInputInjectorMac> injector(
162 new SingleWindowInputInjectorMac(window_id, input_injector.Pass())); 162 new SingleWindowInputInjectorMac(window_id, input_injector.Pass()));
163 return injector.PassAs<InputInjector>(); 163 return injector.Pass();
164 } 164 }
165 165
166 } // namespace remoting 166 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698