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

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

Issue 9720019: Use scoped_ptr<> to pass ownership in more places. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/disconnect_window.h ('k') | remoting/host/disconnect_window_mac.mm » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/disconnect_window.h" 5 #include "remoting/host/disconnect_window.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 #include <math.h> 8 #include <math.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 gboolean DisconnectWindowLinux::OnButtonPress(GtkWidget* widget, 268 gboolean DisconnectWindowLinux::OnButtonPress(GtkWidget* widget,
269 GdkEventButton* event) { 269 GdkEventButton* event) {
270 gtk_window_begin_move_drag(GTK_WINDOW(disconnect_window_), 270 gtk_window_begin_move_drag(GTK_WINDOW(disconnect_window_),
271 event->button, 271 event->button,
272 event->x_root, 272 event->x_root,
273 event->y_root, 273 event->y_root,
274 event->time); 274 event->time);
275 return FALSE; 275 return FALSE;
276 } 276 }
277 277
278 DisconnectWindow* DisconnectWindow::Create() { 278 scoped_ptr<DisconnectWindow> DisconnectWindow::Create() {
279 return new DisconnectWindowLinux; 279 return scoped_ptr<DisconnectWindow>(new DisconnectWindowLinux());
280 } 280 }
281 281
282 } // namespace remoting 282 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window.h ('k') | remoting/host/disconnect_window_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698