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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 BASE_EXPORT extern const char kActivateApplication[]; | 48 BASE_EXPORT extern const char kActivateApplication[]; |
49 | 49 |
50 // Returns the handle to the metro dll loaded in the process. A NULL return | 50 // Returns the handle to the metro dll loaded in the process. A NULL return |
51 // indicates that the metro dll was not loaded in the process. | 51 // indicates that the metro dll was not loaded in the process. |
52 BASE_EXPORT HMODULE GetMetroModule(); | 52 BASE_EXPORT HMODULE GetMetroModule(); |
53 | 53 |
54 // Returns true if this process is running as an immersive program | 54 // Returns true if this process is running as an immersive program |
55 // in Windows Metro mode. | 55 // in Windows Metro mode. |
56 BASE_EXPORT bool IsMetroProcess(); | 56 BASE_EXPORT bool IsMetroProcess(); |
57 | 57 |
| 58 // Returns true if this process is running under Text Services Framework (TSF) |
| 59 // and browser must be TSF-aware. |
| 60 BASE_EXPORT bool IsTsfAwareRequired(); |
| 61 |
58 // Allocates and returns the destination string via the LocalAlloc API after | 62 // Allocates and returns the destination string via the LocalAlloc API after |
59 // copying the src to it. | 63 // copying the src to it. |
60 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); | 64 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); |
61 | 65 |
62 // Returns true if the screen supports touch. | 66 // Returns true if the screen supports touch. |
63 BASE_EXPORT bool IsTouchEnabled(); | 67 BASE_EXPORT bool IsTouchEnabled(); |
64 | 68 |
65 // Returns true if Windows Parental control activity logging is enabled. This | 69 // Returns true if Windows Parental control activity logging is enabled. This |
66 // feature is available on Windows Vista and beyond. | 70 // feature is available on Windows Vista and beyond. |
67 // This function should ideally be called on the UI thread. | 71 // This function should ideally be called on the UI thread. |
68 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); | 72 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); |
69 | 73 |
70 // Handler function for the buttons on a metro dialog box | 74 // Handler function for the buttons on a metro dialog box |
71 typedef void (*MetroDialogButtonPressedHandler)(); | 75 typedef void (*MetroDialogButtonPressedHandler)(); |
72 | 76 |
73 } // namespace win | 77 } // namespace win |
74 } // namespace base | 78 } // namespace base |
75 | 79 |
76 #endif // BASE_WIN_METRO_H_ | 80 #endif // BASE_WIN_METRO_H_ |
OLD | NEW |