diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-09 21:32:48 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-09 21:32:48 +0000 |
commit | f076da598a160055bcb0e3e12d3edc4acb7bb522 (patch) | |
tree | 52b47f930e85db9b77e77713e1a049708fc3388e /base | |
parent | 7ff915651446ce65cf0e68f7fdb2f2afe8d04460 (diff) | |
download | chromium_src-f076da598a160055bcb0e3e12d3edc4acb7bb522.zip chromium_src-f076da598a160055bcb0e3e12d3edc4acb7bb522.tar.gz chromium_src-f076da598a160055bcb0e3e12d3edc4acb7bb522.tar.bz2 |
Added an initial version of helper functions for Windows 8 metro to base.
The only function added right now is GetMetroModule which returns the handle to
the loaded metro dll if any.
BUG=118641
Review URL: https://chromiumcodereview.appspot.com/10006053
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@131440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/base.gypi | 2 | ||||
-rw-r--r-- | base/win/metro.cc | 16 | ||||
-rw-r--r-- | base/win/metro.h | 23 |
3 files changed, 41 insertions, 0 deletions
diff --git a/base/base.gypi b/base/base.gypi index f9fb0c0..facb472 100644 --- a/base/base.gypi +++ b/base/base.gypi @@ -415,6 +415,8 @@ 'win/iat_patch_function.h', 'win/iunknown_impl.h', 'win/iunknown_impl.cc', + 'win/metro.cc', + 'win/metro.h', 'win/object_watcher.cc', 'win/object_watcher.h', 'win/registry.cc', diff --git a/base/win/metro.cc b/base/win/metro.cc new file mode 100644 index 0000000..813f717 --- /dev/null +++ b/base/win/metro.cc @@ -0,0 +1,16 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "base/win/metro.h" + +namespace base { +namespace win { + +HMODULE GetMetroModule() { + return GetModuleHandleA("metro_driver.dll"); +} + +} // namespace win +} // namespace base + diff --git a/base/win/metro.h b/base/win/metro.h new file mode 100644 index 0000000..4fe805a --- /dev/null +++ b/base/win/metro.h @@ -0,0 +1,23 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_WIN_METRO_H_ +#define BASE_WIN_METRO_H_ +#pragma once + +#include <windows.h> + +#include "base/base_export.h" + +namespace base { +namespace win { + +// Returns the handle to the metro dll loaded in the process. A NULL return +// indicates that the metro dll was not loaded in the process. +BASE_EXPORT HMODULE GetMetroModule(); + +} // namespace win +} // namespace base + +#endif // BASE_WIN_METRO_H_ |