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 CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ |
7 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
11 #include <locationapi.h> | 11 #include <locationapi.h> |
12 #include <sensors.h> | 12 #include <sensors.h> |
13 | 13 |
14 #include "base/time.h" | |
15 #include "base/win/scoped_com_initializer.h" | 14 #include "base/win/scoped_com_initializer.h" |
16 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
17 | 16 |
18 namespace content { | 17 namespace content { |
19 struct Geoposition; | 18 struct Geoposition; |
20 } | 19 } |
21 | 20 |
22 // PropVariantToDouble | 21 // PropVariantToDouble |
23 typedef HRESULT (WINAPI* PropVariantToDoubleFunction) | 22 typedef HRESULT (WINAPI* PropVariantToDoubleFunction) |
24 (REFPROPVARIANT propvarIn, DOUBLE *pdblRet); | 23 (REFPROPVARIANT propvarIn, DOUBLE *pdblRet); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 CComPtr<ILocation> locator_; | 58 CComPtr<ILocation> locator_; |
60 // Holds the opened propsys.dll library that is passed on construction. | 59 // Holds the opened propsys.dll library that is passed on construction. |
61 // This class is responsible for closing it. | 60 // This class is responsible for closing it. |
62 HINSTANCE prop_lib_; | 61 HINSTANCE prop_lib_; |
63 PropVariantToDoubleFunction PropVariantToDouble_function_; | 62 PropVariantToDoubleFunction PropVariantToDouble_function_; |
64 | 63 |
65 DISALLOW_COPY_AND_ASSIGN(Win7LocationApi); | 64 DISALLOW_COPY_AND_ASSIGN(Win7LocationApi); |
66 }; | 65 }; |
67 | 66 |
68 #endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ | 67 #endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ |
OLD | NEW |