Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/ui_scene_manager.h" | 5 #include "chrome/browser/android/vr_shell/ui_scene_manager.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "chrome/browser/android/vr_shell/textures/close_button_texture.h" | 9 #include "chrome/browser/android/vr_shell/textures/close_button_texture.h" |
| 10 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" | 10 #include "chrome/browser/android/vr_shell/textures/ui_texture.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 352 | 352 |
| 353 void UiSceneManager::SetAudioCapturingIndicator(bool enabled) { | 353 void UiSceneManager::SetAudioCapturingIndicator(bool enabled) { |
| 354 audio_capture_indicator_->set_visible(enabled); | 354 audio_capture_indicator_->set_visible(enabled); |
| 355 } | 355 } |
| 356 | 356 |
| 357 void UiSceneManager::SetVideoCapturingIndicator(bool enabled) { | 357 void UiSceneManager::SetVideoCapturingIndicator(bool enabled) { |
| 358 video_capture_indicator_->set_visible(enabled); | 358 video_capture_indicator_->set_visible(enabled); |
| 359 } | 359 } |
| 360 | 360 |
| 361 void UiSceneManager::SetScreenCapturingIndicator(bool enabled) { | 361 void UiSceneManager::SetScreenCapturingIndicator(bool enabled) { |
| 362 // TODO(asimjour) add the indicator and change the visibility here. | 362 screen_capture_indicator_->set_visible(enabled); |
|
cjgrant
2017/05/23 19:16:23
I think you need to cover the WebVR case, where th
| |
| 363 } | 363 } |
| 364 | 364 |
| 365 void UiSceneManager::SetWebVrSecureOrigin(bool secure) { | 365 void UiSceneManager::SetWebVrSecureOrigin(bool secure) { |
| 366 secure_origin_ = secure; | 366 secure_origin_ = secure; |
| 367 ConfigureSecurityWarnings(); | 367 ConfigureSecurityWarnings(); |
| 368 } | 368 } |
| 369 | 369 |
| 370 void UiSceneManager::OnAppButtonClicked() { | 370 void UiSceneManager::OnAppButtonClicked() { |
| 371 // App button click exits the WebVR presentation and fullscreen. | 371 // App button click exits the WebVR presentation and fullscreen. |
| 372 browser_->ExitPresent(); | 372 browser_->ExitPresent(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 432 | 432 |
| 433 void UiSceneManager::OnCloseButtonClicked() { | 433 void UiSceneManager::OnCloseButtonClicked() { |
| 434 browser_->ExitCct(); | 434 browser_->ExitCct(); |
| 435 } | 435 } |
| 436 | 436 |
| 437 int UiSceneManager::AllocateId() { | 437 int UiSceneManager::AllocateId() { |
| 438 return next_available_id_++; | 438 return next_available_id_++; |
| 439 } | 439 } |
| 440 | 440 |
| 441 } // namespace vr_shell | 441 } // namespace vr_shell |
| OLD | NEW |