| OLD | NEW |
| 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 "remoting/host/disconnect_window.h" | 5 #include "remoting/host/disconnect_window.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "base/win/scoped_gdi_object.h" | 14 #include "base/win/scoped_gdi_object.h" |
| 15 #include "base/win/scoped_hdc.h" | 15 #include "base/win/scoped_hdc.h" |
| 16 #include "base/win/scoped_select_object.h" | 16 #include "base/win/scoped_select_object.h" |
| 17 #include "remoting/host/host_ui_resource.h" | |
| 18 #include "remoting/host/ui_strings.h" | 17 #include "remoting/host/ui_strings.h" |
| 18 #include "remoting/host/win/core_resource.h" |
| 19 | 19 |
| 20 // TODO(garykac): Lots of duplicated code in this file and | 20 // TODO(garykac): Lots of duplicated code in this file and |
| 21 // continue_window_win.cc. If we need to expand this then we should | 21 // continue_window_win.cc. If we need to expand this then we should |
| 22 // create a class with the shared code. | 22 // create a class with the shared code. |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 const int DISCONNECT_HOTKEY_ID = 1000; | 26 const int DISCONNECT_HOTKEY_ID = 1000; |
| 27 | 27 |
| 28 // Maximum length of "Your desktop is shared with ..." message in UTF-16 | 28 // Maximum length of "Your desktop is shared with ..." message in UTF-16 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 return true; | 385 return true; |
| 386 } | 386 } |
| 387 | 387 |
| 388 scoped_ptr<DisconnectWindow> DisconnectWindow::Create( | 388 scoped_ptr<DisconnectWindow> DisconnectWindow::Create( |
| 389 const UiStrings* ui_strings) { | 389 const UiStrings* ui_strings) { |
| 390 return scoped_ptr<DisconnectWindow>(new DisconnectWindowWin(ui_strings)); | 390 return scoped_ptr<DisconnectWindow>(new DisconnectWindowWin(ui_strings)); |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace remoting | 393 } // namespace remoting |
| OLD | NEW |