| 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 "base/win/win_util.h" | 5 #include "base/win/win_util.h" |
| 6 | 6 |
| 7 #include <aclapi.h> | 7 #include <aclapi.h> |
| 8 #include <cfgmgr32.h> | 8 #include <cfgmgr32.h> |
| 9 #include <lm.h> | 9 #include <lm.h> |
| 10 #include <powrprof.h> | 10 #include <powrprof.h> |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 osk_path.Get().insert(1, common_program_files_path); | 421 osk_path.Get().insert(1, common_program_files_path); |
| 422 } | 422 } |
| 423 } | 423 } |
| 424 | 424 |
| 425 HINSTANCE ret = ::ShellExecuteW(NULL, | 425 HINSTANCE ret = ::ShellExecuteW(NULL, |
| 426 L"", | 426 L"", |
| 427 osk_path.Get().c_str(), | 427 osk_path.Get().c_str(), |
| 428 NULL, | 428 NULL, |
| 429 NULL, | 429 NULL, |
| 430 SW_SHOW); | 430 SW_SHOW); |
| 431 return reinterpret_cast<int>(ret) > 32; | 431 return reinterpret_cast<intptr_t>(ret) > 32; |
| 432 } | 432 } |
| 433 | 433 |
| 434 bool DismissVirtualKeyboard() { | 434 bool DismissVirtualKeyboard() { |
| 435 if (base::win::GetVersion() < base::win::VERSION_WIN8) | 435 if (base::win::GetVersion() < base::win::VERSION_WIN8) |
| 436 return false; | 436 return false; |
| 437 | 437 |
| 438 // We dismiss the virtual keyboard by generating the ESC keystroke | 438 // We dismiss the virtual keyboard by generating the ESC keystroke |
| 439 // programmatically. | 439 // programmatically. |
| 440 const wchar_t kOSKClassName[] = L"IPTip_Main_Window"; | 440 const wchar_t kOSKClassName[] = L"IPTip_Main_Window"; |
| 441 HWND osk = ::FindWindow(kOSKClassName, NULL); | 441 HWND osk = ::FindWindow(kOSKClassName, NULL); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 // deployed. | 487 // deployed. |
| 488 if (os_info->version() == base::win::VERSION_SERVER_2003) | 488 if (os_info->version() == base::win::VERSION_SERVER_2003) |
| 489 return false; | 489 return false; |
| 490 | 490 |
| 491 DCHECK(os_info->version() >= base::win::VERSION_VISTA); | 491 DCHECK(os_info->version() >= base::win::VERSION_VISTA); |
| 492 return true; // New enough to have SHA-256 support. | 492 return true; // New enough to have SHA-256 support. |
| 493 } | 493 } |
| 494 | 494 |
| 495 } // namespace win | 495 } // namespace win |
| 496 } // namespace base | 496 } // namespace base |
| OLD | NEW |