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

Unified Diff: chrome/browser/android/vr_shell/vr_shell.h

Issue 2975683002: Add GeolocationManager service (Closed)
Patch Set: typo Created 3 years, 5 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell.h
diff --git a/chrome/browser/android/vr_shell/vr_shell.h b/chrome/browser/android/vr_shell/vr_shell.h
index f69f2b7f2518161945e3d3c9f65db6682e486b31..ad42ddcf4adb27594c450b40697909ada5e597fd 100644
--- a/chrome/browser/android/vr_shell/vr_shell.h
+++ b/chrome/browser/android/vr_shell/vr_shell.h
@@ -19,6 +19,7 @@
#include "chrome/browser/vr/ui_interface.h"
#include "chrome/browser/vr/ui_unsupported_mode.h"
#include "content/public/browser/web_contents_observer.h"
+#include "device/geolocation/public/interfaces/geolocation_config.mojom.h"
#include "device/vr/android/gvr/cardboard_gamepad_data_provider.h"
#include "device/vr/android/gvr/gvr_delegate.h"
#include "device/vr/android/gvr/gvr_gamepad_data_provider.h"
@@ -161,6 +162,7 @@ class VrShell : public device::GvrDelegate,
void DoUiAction(const UiAction action,
const base::DictionaryValue* arguments);
+ void SetHighAccuracyLocation(bool high_accuracy_location);
void SetContentCssSize(float width, float height, float dpr);
void ContentFrameWasResized(bool width_changed);
@@ -235,6 +237,8 @@ class VrShell : public device::GvrDelegate,
vr::UiInterface* ui_;
std::unique_ptr<vr::ToolbarHelper> toolbar_;
+ device::mojom::GeolocationConfigPtr geolocation_config_;
+
jobject content_surface_ = nullptr;
bool taken_surface_ = false;
base::CancelableClosure poll_capturing_media_task_;
@@ -242,6 +246,7 @@ class VrShell : public device::GvrDelegate,
bool is_capturing_video_ = false;
bool is_capturing_screen_ = false;
bool is_bluetooth_connected_ = false;
+ bool high_accuracy_location_ = false;
// Are we currently providing a gamepad factory to the gamepad manager?
bool gvr_gamepad_source_active_ = false;
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.cc ('k') | chrome/browser/android/vr_shell/vr_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698