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

Side by Side Diff: base/win/metro.h

Issue 10693133: Add a helper function to query whether parental control logging is on for the current chrome user (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/win/metro.cc » ('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 #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
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_
OLDNEW
« no previous file with comments | « no previous file | base/win/metro.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698