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

Side by Side Diff: chrome/browser/android/vr_shell/vr_gl_thread.cc

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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "chrome/browser/android/vr_shell/vr_gl_thread.h" 5 #include "chrome/browser/android/vr_shell/vr_gl_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "chrome/browser/android/vr_shell/vr_input_manager.h" 9 #include "chrome/browser/android/vr_shell/vr_input_manager.h"
10 #include "chrome/browser/android/vr_shell/vr_shell.h" 10 #include "chrome/browser/android/vr_shell/vr_shell.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 base::Bind(&vr::UiSceneManager::SetWebVrSecureOrigin, 202 base::Bind(&vr::UiSceneManager::SetWebVrSecureOrigin,
203 weak_scene_manager_, secure)); 203 weak_scene_manager_, secure));
204 } 204 }
205 205
206 void VrGLThread::SetAudioCapturingIndicator(bool enabled) { 206 void VrGLThread::SetAudioCapturingIndicator(bool enabled) {
207 task_runner()->PostTask( 207 task_runner()->PostTask(
208 FROM_HERE, base::Bind(&vr::UiSceneManager::SetAudioCapturingIndicator, 208 FROM_HERE, base::Bind(&vr::UiSceneManager::SetAudioCapturingIndicator,
209 weak_scene_manager_, enabled)); 209 weak_scene_manager_, enabled));
210 } 210 }
211 211
212 void VrGLThread::SetLocationAccessIndicator(bool enabled) {
213 task_runner()->PostTask(
214 FROM_HERE, base::Bind(&vr::UiSceneManager::SetLocationAccessIndicator,
215 weak_scene_manager_, enabled));
216 }
217
212 void VrGLThread::SetVideoCapturingIndicator(bool enabled) { 218 void VrGLThread::SetVideoCapturingIndicator(bool enabled) {
213 task_runner()->PostTask( 219 task_runner()->PostTask(
214 FROM_HERE, base::Bind(&vr::UiSceneManager::SetVideoCapturingIndicator, 220 FROM_HERE, base::Bind(&vr::UiSceneManager::SetVideoCapturingIndicator,
215 weak_scene_manager_, enabled)); 221 weak_scene_manager_, enabled));
216 } 222 }
217 223
218 void VrGLThread::SetScreenCapturingIndicator(bool enabled) { 224 void VrGLThread::SetScreenCapturingIndicator(bool enabled) {
219 task_runner()->PostTask( 225 task_runner()->PostTask(
220 FROM_HERE, base::Bind(&vr::UiSceneManager::SetScreenCapturingIndicator, 226 FROM_HERE, base::Bind(&vr::UiSceneManager::SetScreenCapturingIndicator,
221 weak_scene_manager_, enabled)); 227 weak_scene_manager_, enabled));
(...skipping 19 matching lines...) Expand all
241 weak_scene_manager_, bitmap)); 247 weak_scene_manager_, bitmap));
242 } 248 }
243 249
244 void VrGLThread::CleanUp() { 250 void VrGLThread::CleanUp() {
245 scene_manager_.reset(); 251 scene_manager_.reset();
246 vr_shell_gl_.reset(); 252 vr_shell_gl_.reset();
247 scene_.reset(); 253 scene_.reset();
248 } 254 }
249 255
250 } // namespace vr_shell 256 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_gl_thread.h ('k') | chrome/browser/android/vr_shell/vr_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698