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

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

Issue 10560015: Implement base::win::IsMetroProcess. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 6 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 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // The types of exports in metro_driver.dll. 44 // The types of exports in metro_driver.dll.
45 typedef HRESULT (*ActivateApplicationFn)(const wchar_t*); 45 typedef HRESULT (*ActivateApplicationFn)(const wchar_t*);
46 46
47 // The names of the exports in metro_driver.dll. 47 // The names of the exports in metro_driver.dll.
48 BASE_EXPORT extern const char kActivateApplication[]; 48 BASE_EXPORT extern const char kActivateApplication[];
49 49
50 // Returns the handle to the metro dll loaded in the process. A NULL return 50 // Returns the handle to the metro dll loaded in the process. A NULL return
51 // indicates that the metro dll was not loaded in the process. 51 // indicates that the metro dll was not loaded in the process.
52 BASE_EXPORT HMODULE GetMetroModule(); 52 BASE_EXPORT HMODULE GetMetroModule();
53 53
54 // Returns true if this process is running as an immersive program
55 // in Windows Metro mode.
56 BASE_EXPORT bool IsMetroProcess();
57
54 // Allocates and returns the destination string via the LocalAlloc API after 58 // Allocates and returns the destination string via the LocalAlloc API after
55 // copying the src to it. 59 // copying the src to it.
56 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); 60 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src);
57 61
58 } // namespace win 62 } // namespace win
59 } // namespace base 63 } // namespace base
60 64
61 #endif // BASE_WIN_METRO_H_ 65 #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