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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 BASE_EXPORT bool IsMetroProcess(); | 73 BASE_EXPORT bool IsMetroProcess(); |
74 | 74 |
75 // Returns true if the process identified by the handle passed in is an | 75 // Returns true if the process identified by the handle passed in is an |
76 // immersive (Metro) process. | 76 // immersive (Metro) process. |
77 BASE_EXPORT bool IsProcessImmersive(HANDLE process); | 77 BASE_EXPORT bool IsProcessImmersive(HANDLE process); |
78 | 78 |
79 // Returns true if this process is running under Text Services Framework (TSF) | 79 // Returns true if this process is running under Text Services Framework (TSF) |
80 // and browser must be TSF-aware. | 80 // and browser must be TSF-aware. |
81 BASE_EXPORT bool IsTSFAwareRequired(); | 81 BASE_EXPORT bool IsTSFAwareRequired(); |
82 | 82 |
83 // Sets browser to use Text Services Framework (TSF) regardless of process | |
84 // status. On Windows 8, this function also disables CUAS (Cicero Unaware | |
85 // Application Support) to emulate Windows Metro mode in terms of IME | |
86 // functionality. This should be beneficial in QA process because on can test | |
87 // IME functionality in Windows 8 desktop mode. | |
88 BASE_EXPORT void SetForceToUseTSF(); | |
89 | |
90 // Allocates and returns the destination string via the LocalAlloc API after | 83 // Allocates and returns the destination string via the LocalAlloc API after |
91 // copying the src to it. | 84 // copying the src to it. |
92 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); | 85 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); |
93 | 86 |
94 // Returns true if Windows Parental control activity logging is enabled. This | 87 // Returns true if Windows Parental control activity logging is enabled. This |
95 // feature is available on Windows Vista and beyond. | 88 // feature is available on Windows Vista and beyond. |
96 // This function should ideally be called on the UI thread. | 89 // This function should ideally be called on the UI thread. |
97 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); | 90 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); |
98 | 91 |
99 // Returns the type of launch and the activation params. For example if the | 92 // Returns the type of launch and the activation params. For example if the |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 126 |
134 // Function to un-pin a site-specific tile (bookmark) from the start screen. | 127 // Function to un-pin a site-specific tile (bookmark) from the start screen. |
135 typedef void (*MetroUnPinFromStartScreen)( | 128 typedef void (*MetroUnPinFromStartScreen)( |
136 const string16& title_id, | 129 const string16& title_id, |
137 const MetroPinUmaResultCallback& callback); | 130 const MetroPinUmaResultCallback& callback); |
138 | 131 |
139 } // namespace win | 132 } // namespace win |
140 } // namespace base | 133 } // namespace base |
141 | 134 |
142 #endif // BASE_WIN_METRO_H_ | 135 #endif // BASE_WIN_METRO_H_ |
OLD | NEW |