mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
* chore: bump chromium in DEPS to 114.0.5733.2
* chore: bump chromium in DEPS to 114.0.5735.6
* chore: bump chromium in DEPS to 114.0.5735.9
* chore: update patches
* 4450570: Clean up content shell
https://chromium-review.googlesource.com/c/chromium/src/+/4450570
(cherry picked from commit d89b76e6857a332dc779bdb0a04913f3e7541524)
* 4262527: geolocation: Introduce mojom::GeopositionResult
https://chromium-review.googlesource.com/c/chromium/src/+/4262527
(cherry picked from commit 9b350a60c234653109520b407d16d0ad71ea3ed7)
* 4450327: Android/Nav: Stop taking content timeout timer from old host.
https://chromium-review.googlesource.com/c/chromium/src/+/4450327
Also, see:
4451366: Reland "Prerender: Fix prerender new content timeout start timing"
https://chromium-review.googlesource.com/c/chromium/src/+/4451366
(cherry picked from commit 7039603714cbfac7ebb20cb1ab0135c8249a89fd)
* chore: bump CircleCI xcode version
this will hopefully get us the necessary macOS sdk 13.3 on CI.
(cherry picked from commit b3283351cdd0a079d5fe65fe46b642c7def74f38)
* test: fix geolocation test
(cherry picked from commit bddbc573ada91511d07dbc6b4622ac95358f0993)
* fixup patch
* chore: bump chromium in DEPS to 114.0.5735.16
* chore: update patches
* 4336172: Include client-drawn window decorations in aspect ratio. |
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/4336172
* build: bump appveyor image to fix windows cache
* spec: fix race condition in alwaysOnTop test
* build: use xcode 14.2 not 14.3
* build: use macOS 12 to run tests
The new macOS 13 VMs appear to have different screen / display behavior
---------
Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com>
Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
Co-authored-by: clavin <clavin@electronjs.org>
Co-authored-by: PatchUp <73610968+patchup[bot]@users.noreply.github.com>
Co-authored-by: VerteDinde <keeleymhammond@gmail.com>
Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
Co-authored-by: Samuel Attard <samuel.r.attard@gmail.com>
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
// Copyright (c) 2018 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_BROWSER_FAKE_LOCATION_PROVIDER_H_
|
|
#define ELECTRON_SHELL_BROWSER_FAKE_LOCATION_PROVIDER_H_
|
|
|
|
#include "services/device/public/cpp/geolocation/location_provider.h"
|
|
#include "services/device/public/mojom/geoposition.mojom.h"
|
|
|
|
namespace electron {
|
|
|
|
class FakeLocationProvider : public device::LocationProvider {
|
|
public:
|
|
FakeLocationProvider();
|
|
~FakeLocationProvider() override;
|
|
|
|
// disable copy
|
|
FakeLocationProvider(const FakeLocationProvider&) = delete;
|
|
FakeLocationProvider& operator=(const FakeLocationProvider&) = delete;
|
|
|
|
// LocationProvider Implementation:
|
|
void SetUpdateCallback(
|
|
const LocationProviderUpdateCallback& callback) override;
|
|
void StartProvider(bool high_accuracy) override;
|
|
void StopProvider() override;
|
|
const device::mojom::GeopositionResult* GetPosition() override;
|
|
void OnPermissionGranted() override;
|
|
|
|
private:
|
|
device::mojom::GeopositionResultPtr result_;
|
|
LocationProviderUpdateCallback callback_;
|
|
};
|
|
|
|
} // namespace electron
|
|
|
|
#endif // ELECTRON_SHELL_BROWSER_FAKE_LOCATION_PROVIDER_H_
|