Chromium Code Reviews| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 | 78 |
| 79 // Allocates and returns the destination string via the LocalAlloc API after | 79 // Allocates and returns the destination string via the LocalAlloc API after |
| 80 // copying the src to it. | 80 // copying the src to it. |
| 81 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); | 81 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); |
| 82 | 82 |
| 83 // Returns true if Windows Parental control activity logging is enabled. This | 83 // Returns true if Windows Parental control activity logging is enabled. This |
| 84 // feature is available on Windows Vista and beyond. | 84 // feature is available on Windows Vista and beyond. |
| 85 // This function should ideally be called on the UI thread. | 85 // This function should ideally be called on the UI thread. |
| 86 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); | 86 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); |
| 87 | 87 |
| 88 // Returns true if Windows Parental control activity logging is enabled. This | |
| 89 // function simply returns a cached value and must be called after | |
| 90 // |IsParentalControlActivityLoggingOn| which sets the cached value. | |
| 91 BASE_EXPORT bool IsParentalControlActivityLoggingOnCached(); | |
|
cpu_(ooo_6.6-7.5)
2014/06/17 16:35:51
Most functions in this file are not used and slate
guohui
2014/06/17 18:45:03
we hit this codepatch in this CL. We need to check
| |
| 92 | |
| 88 // Returns the type of launch and the activation params. For example if the | 93 // Returns the type of launch and the activation params. For example if the |
| 89 // the launch is for METRO_PROTOCOL then the params is a url. | 94 // the launch is for METRO_PROTOCOL then the params is a url. |
| 90 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params); | 95 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params); |
| 91 | 96 |
| 92 // Handler function for the buttons on a metro dialog box | 97 // Handler function for the buttons on a metro dialog box |
| 93 typedef void (*MetroDialogButtonPressedHandler)(); | 98 typedef void (*MetroDialogButtonPressedHandler)(); |
| 94 | 99 |
| 95 // Handler function invoked when a metro style notification is clicked. | 100 // Handler function invoked when a metro style notification is clicked. |
| 96 typedef void (*MetroNotificationClickedHandler)(const wchar_t* context); | 101 typedef void (*MetroNotificationClickedHandler)(const wchar_t* context); |
| 97 | 102 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 122 | 127 |
| 123 // Function to un-pin a site-specific tile (bookmark) from the start screen. | 128 // Function to un-pin a site-specific tile (bookmark) from the start screen. |
| 124 typedef void (*MetroUnPinFromStartScreen)( | 129 typedef void (*MetroUnPinFromStartScreen)( |
| 125 const string16& title_id, | 130 const string16& title_id, |
| 126 const MetroPinUmaResultCallback& callback); | 131 const MetroPinUmaResultCallback& callback); |
| 127 | 132 |
| 128 } // namespace win | 133 } // namespace win |
| 129 } // namespace base | 134 } // namespace base |
| 130 | 135 |
| 131 #endif // BASE_WIN_METRO_H_ | 136 #endif // BASE_WIN_METRO_H_ |
| OLD | NEW |