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

Side by Side Diff: base/win/win_util.cc

Issue 1128733002: Update from https://crrev.com/328418 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « base/win/startup_information.h ('k') | build/all.gyp » ('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) 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
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
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
OLDNEW
« no previous file with comments | « base/win/startup_information.h ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698