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

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

Issue 141773009: Revert r151669 and r155589 as non-Aura Metro mode is gone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
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> 9 #include <wpcapi.h>
10 10
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 BASE_EXPORT HMODULE GetMetroModule(); 69 BASE_EXPORT HMODULE GetMetroModule();
70 70
71 // Returns true if this process is running as an immersive program 71 // Returns true if this process is running as an immersive program
72 // in Windows Metro mode. 72 // in Windows Metro mode.
73 BASE_EXPORT bool IsMetroProcess(); 73 BASE_EXPORT bool IsMetroProcess();
74 74
75 // Returns true if the process identified by the handle passed in is an 75 // Returns true if the process identified by the handle passed in is an
76 // immersive (Metro) process. 76 // immersive (Metro) process.
77 BASE_EXPORT bool IsProcessImmersive(HANDLE process); 77 BASE_EXPORT bool IsProcessImmersive(HANDLE process);
78 78
79 // Returns true if this process is running under Text Services Framework (TSF)
80 // and browser must be TSF-aware.
81 BASE_EXPORT bool IsTSFAwareRequired();
82
83 // Allocates and returns the destination string via the LocalAlloc API after 79 // Allocates and returns the destination string via the LocalAlloc API after
84 // copying the src to it. 80 // copying the src to it.
85 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); 81 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src);
86 82
87 // Returns true if Windows Parental control activity logging is enabled. This 83 // Returns true if Windows Parental control activity logging is enabled. This
88 // feature is available on Windows Vista and beyond. 84 // feature is available on Windows Vista and beyond.
89 // This function should ideally be called on the UI thread. 85 // This function should ideally be called on the UI thread.
90 BASE_EXPORT bool IsParentalControlActivityLoggingOn(); 86 BASE_EXPORT bool IsParentalControlActivityLoggingOn();
91 87
92 // Returns the type of launch and the activation params. For example if the 88 // Returns the type of launch and the activation params. For example if the
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 122
127 // Function to un-pin a site-specific tile (bookmark) from the start screen. 123 // Function to un-pin a site-specific tile (bookmark) from the start screen.
128 typedef void (*MetroUnPinFromStartScreen)( 124 typedef void (*MetroUnPinFromStartScreen)(
129 const string16& title_id, 125 const string16& title_id,
130 const MetroPinUmaResultCallback& callback); 126 const MetroPinUmaResultCallback& callback);
131 127
132 } // namespace win 128 } // namespace win
133 } // namespace base 129 } // namespace base
134 130
135 #endif // BASE_WIN_METRO_H_ 131 #endif // BASE_WIN_METRO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698