| 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 #ifndef BASE_WIN_METRO_H_ | 5 #ifndef BASE_WIN_METRO_H_ |
| 6 #define BASE_WIN_METRO_H_ | 6 #define BASE_WIN_METRO_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <wpcapi.h> | 9 #include <wpcapi.h> |
| 10 | 10 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 // Returns the handle to the metro dll loaded in the process. A NULL return | 45 // Returns the handle to the metro dll loaded in the process. A NULL return |
| 46 // indicates that the metro dll was not loaded in the process. | 46 // indicates that the metro dll was not loaded in the process. |
| 47 BASE_EXPORT HMODULE GetMetroModule(); | 47 BASE_EXPORT HMODULE GetMetroModule(); |
| 48 | 48 |
| 49 // Returns true if this process is running as an immersive program | 49 // Returns true if this process is running as an immersive program |
| 50 // in Windows Metro mode. | 50 // in Windows Metro mode. |
| 51 BASE_EXPORT bool IsMetroProcess(); | 51 BASE_EXPORT bool IsMetroProcess(); |
| 52 | 52 |
| 53 // Returns true if the process identified by the handle passed in is an |
| 54 // immersive (Metro) process. |
| 55 BASE_EXPORT bool IsProcessImmersive(HANDLE process); |
| 56 |
| 53 // Returns true if this process is running under Text Services Framework (TSF) | 57 // Returns true if this process is running under Text Services Framework (TSF) |
| 54 // and browser must be TSF-aware. | 58 // and browser must be TSF-aware. |
| 55 BASE_EXPORT bool IsTsfAwareRequired(); | 59 BASE_EXPORT bool IsTsfAwareRequired(); |
| 56 | 60 |
| 57 // Sets browser to use Text Service Framework (TSF) regardless of process | 61 // Sets browser to use Text Service Framework (TSF) regardless of process |
| 58 // status. On Windows 8, this function also disables CUAS (Cicero Unaware | 62 // status. On Windows 8, this function also disables CUAS (Cicero Unaware |
| 59 // Application Support) to emulate Windows Metro mode in terms of IME | 63 // Application Support) to emulate Windows Metro mode in terms of IME |
| 60 // functionality. This should be beneficial in QA process because on can test | 64 // functionality. This should be beneficial in QA process because on can test |
| 61 // IME functionality in Windows 8 desktop mode. | 65 // IME functionality in Windows 8 desktop mode. |
| 62 BASE_EXPORT void SetForceToUseTsf(); | 66 BASE_EXPORT void SetForceToUseTsf(); |
| (...skipping 23 matching lines...) Expand all Loading... |
| 86 const wchar_t* title, | 90 const wchar_t* title, |
| 87 const wchar_t* body, | 91 const wchar_t* body, |
| 88 const wchar_t* display_source, | 92 const wchar_t* display_source, |
| 89 const char* notification_id); | 93 const char* notification_id); |
| 90 | 94 |
| 91 | 95 |
| 92 } // namespace win | 96 } // namespace win |
| 93 } // namespace base | 97 } // namespace base |
| 94 | 98 |
| 95 #endif // BASE_WIN_METRO_H_ | 99 #endif // BASE_WIN_METRO_H_ |
| OLD | NEW |