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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include <wpcapi.h> |
10 | 11 |
11 #include "base/base_export.h" | 12 #include "base/base_export.h" |
12 #include "base/string16.h" | 13 #include "base/string16.h" |
13 | 14 |
14 namespace base { | 15 namespace base { |
15 namespace win { | 16 namespace win { |
16 | 17 |
17 // Identifies the type of the metro launch. | 18 // Identifies the type of the metro launch. |
18 enum MetroLaunchType { | 19 enum MetroLaunchType { |
19 LAUNCH, | 20 LAUNCH, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // in Windows Metro mode. | 56 // in Windows Metro mode. |
56 BASE_EXPORT bool IsMetroProcess(); | 57 BASE_EXPORT bool IsMetroProcess(); |
57 | 58 |
58 // Allocates and returns the destination string via the LocalAlloc API after | 59 // Allocates and returns the destination string via the LocalAlloc API after |
59 // copying the src to it. | 60 // copying the src to it. |
60 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); | 61 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); |
61 | 62 |
62 // Returns true if the screen supports touch. | 63 // Returns true if the screen supports touch. |
63 BASE_EXPORT bool IsTouchEnabled(); | 64 BASE_EXPORT bool IsTouchEnabled(); |
64 | 65 |
| 66 // Returns true if Windows 8 Parental control activity logging is enabled. |
| 67 // Can only be called on the UI thread. |
| 68 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); |
| 69 |
65 } // namespace win | 70 } // namespace win |
66 } // namespace base | 71 } // namespace base |
67 | 72 |
68 #endif // BASE_WIN_METRO_H_ | 73 #endif // BASE_WIN_METRO_H_ |
OLD | NEW |