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

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

Issue 1001833005: Update from https://crrev.com/320343 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Supress Created 5 years, 9 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
« no previous file with comments | « base/vlog.cc ('k') | 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 7
8 #include <windows.h> 8 #include <windows.h>
9 #include <wpcapi.h>
10 9
11 #include "base/base_export.h" 10 #include "base/base_export.h"
12 #include "base/callback.h" 11 #include "base/callback.h"
13 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
14 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
15 14
16 namespace base { 15 namespace base {
17 namespace win { 16 namespace win {
18 17
19 // Identifies the type of the metro launch. 18 // Identifies the type of the metro launch.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 BASE_EXPORT bool IsMetroProcess(); 72 BASE_EXPORT bool IsMetroProcess();
74 73
75 // Returns true if the process identified by the handle passed in is an 74 // Returns true if the process identified by the handle passed in is an
76 // immersive (Metro) process. 75 // immersive (Metro) process.
77 BASE_EXPORT bool IsProcessImmersive(HANDLE process); 76 BASE_EXPORT bool IsProcessImmersive(HANDLE process);
78 77
79 // Allocates and returns the destination string via the LocalAlloc API after 78 // Allocates and returns the destination string via the LocalAlloc API after
80 // copying the src to it. 79 // copying the src to it.
81 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); 80 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src);
82 81
83 // Returns true if Windows Parental control activity logging is enabled. This
84 // feature is available on Windows Vista and beyond.
85 // This function should ideally be called on the UI thread.
86 BASE_EXPORT bool IsParentalControlActivityLoggingOn();
87
88 // Returns the type of launch and the activation params. For example if the 82 // 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. 83 // the launch is for METRO_PROTOCOL then the params is a url.
90 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params); 84 BASE_EXPORT MetroLaunchType GetMetroLaunchParams(string16* params);
91 85
92 // Handler function for the buttons on a metro dialog box 86 // Handler function for the buttons on a metro dialog box
93 typedef void (*MetroDialogButtonPressedHandler)(); 87 typedef void (*MetroDialogButtonPressedHandler)();
94 88
95 // Handler function invoked when a metro style notification is clicked. 89 // Handler function invoked when a metro style notification is clicked.
96 typedef void (*MetroNotificationClickedHandler)(const wchar_t* context); 90 typedef void (*MetroNotificationClickedHandler)(const wchar_t* context);
97 91
(...skipping 24 matching lines...) Expand all
122 116
123 // Function to un-pin a site-specific tile (bookmark) from the start screen. 117 // Function to un-pin a site-specific tile (bookmark) from the start screen.
124 typedef void (*MetroUnPinFromStartScreen)( 118 typedef void (*MetroUnPinFromStartScreen)(
125 const string16& title_id, 119 const string16& title_id,
126 const MetroPinUmaResultCallback& callback); 120 const MetroPinUmaResultCallback& callback);
127 121
128 } // namespace win 122 } // namespace win
129 } // namespace base 123 } // namespace base
130 124
131 #endif // BASE_WIN_METRO_H_ 125 #endif // BASE_WIN_METRO_H_
OLDNEW
« no previous file with comments | « base/vlog.cc ('k') | base/win/metro.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698