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

Unified Diff: content/browser/geolocation/win7_location_api_win.h

Issue 22674006: Delete the Windows 7 Geolocation provider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/geolocation/win7_location_api_win.h
diff --git a/content/browser/geolocation/win7_location_api_win.h b/content/browser/geolocation/win7_location_api_win.h
deleted file mode 100644
index 375f844503995f92e944b1356faf4d92f3b3718d..0000000000000000000000000000000000000000
--- a/content/browser/geolocation/win7_location_api_win.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// 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 CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_
-#define CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_
-
-#include <windows.h>
-#include <atlbase.h>
-#include <atlcom.h>
-#include <locationapi.h>
-#include <sensors.h>
-
-#include "base/basictypes.h"
-#include "content/common/content_export.h"
-
-namespace content {
-struct Geoposition;
-
-// PropVariantToDouble
-typedef HRESULT (WINAPI* PropVariantToDoubleFunction)
- (REFPROPVARIANT propvarIn, DOUBLE *pdblRet);
-
-class CONTENT_EXPORT Win7LocationApi {
- public:
- virtual ~Win7LocationApi();
- // Attempts to load propsys.dll, initialise |location_| and requests the user
- // for access to location information. Creates and returns ownership of an
- // instance of Win7LocationApi if all succeed.
- static Win7LocationApi* Create();
- static Win7LocationApi* CreateForTesting(
- PropVariantToDoubleFunction PropVariantToDouble_function,
- ILocation* locator);
- // Gives the best available position.
- // Returns false if no valid position is available.
- virtual void GetPosition(Geoposition* position);
- // Changes the "accuracy" needed. Affects power levels of devices.
- virtual bool SetHighAccuracy(bool acc);
-
- protected:
- Win7LocationApi();
-
- private:
- void Init(HINSTANCE prop_library,
- PropVariantToDoubleFunction PropVariantToDouble_function,
- ILocation* locator);
-
- // Provides the best position fix if one is available.
- // Does this by requesting a location report and querying it to obtain
- // location information.
- virtual bool GetPositionIfFixed(Geoposition* position);
-
- // ILocation object that lets us communicate with the Location and
- // Sensors platform.
- CComPtr<ILocation> locator_;
- // Holds the opened propsys.dll library that is passed on construction.
- // This class is responsible for closing it.
- HINSTANCE prop_lib_;
- PropVariantToDoubleFunction PropVariantToDouble_function_;
-
- DISALLOW_COPY_AND_ASSIGN(Win7LocationApi);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_GEOLOCATION_WIN7_LOCATION_API_WIN_H_
« no previous file with comments | « content/browser/geolocation/win7_location_api_unittest_win.cc ('k') | content/browser/geolocation/win7_location_api_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698