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

Side by Side Diff: content/browser/geolocation/win7_location_api_win.h

Issue 6676030: WinDDK ATL and MSVC express compatability (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Address comments: -EXPRESS define, memset always implemented, coding style Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 #include <locationapi.h> 10 #include <locationapi.h>
11 #include <sensors.h> 11 #include <sensors.h>
12 #include <Windows.h> 12 #include <Windows.h>
13 13
14 #include "app/win/scoped_com_initializer.h" 14 #include "app/win/scoped_com_initializer.h"
15 #include "base/time.h" 15 #include "base/time.h"
16 #include "base/win/atlcheck.h"
16 17
17 struct Geoposition; 18 struct Geoposition;
18 19
19 // PropVariantToDouble 20 // PropVariantToDouble
20 typedef HRESULT (WINAPI* PropVariantToDoubleFunction) 21 typedef HRESULT (WINAPI* PropVariantToDoubleFunction)
21 (REFPROPVARIANT propvarIn, DOUBLE *pdblRet); 22 (REFPROPVARIANT propvarIn, DOUBLE *pdblRet);
22 23
23 class Win7LocationApi { 24 class Win7LocationApi {
24 public: 25 public:
25 virtual ~Win7LocationApi(); 26 virtual ~Win7LocationApi();
(...skipping 30 matching lines...) Expand all
56 CComPtr<ILocation> locator_; 57 CComPtr<ILocation> locator_;
57 // Holds the opened propsys.dll library that is passed on construction. 58 // Holds the opened propsys.dll library that is passed on construction.
58 // This class is responsible for closing it. 59 // This class is responsible for closing it.
59 HINSTANCE prop_lib_; 60 HINSTANCE prop_lib_;
60 PropVariantToDoubleFunction PropVariantToDouble_function_; 61 PropVariantToDoubleFunction PropVariantToDouble_function_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(Win7LocationApi); 63 DISALLOW_COPY_AND_ASSIGN(Win7LocationApi);
63 }; 64 };
64 65
65 #endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_ 66 #endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698