| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |