| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 } | 445 } |
| 446 | 446 |
| 447 void UiSceneManager::OnBackButtonClicked() { | 447 void UiSceneManager::OnBackButtonClicked() { |
| 448 browser_->NavigateBack(); | 448 browser_->NavigateBack(); |
| 449 } | 449 } |
| 450 | 450 |
| 451 void UiSceneManager::SetURL(const GURL& gurl) { | 451 void UiSceneManager::SetURL(const GURL& gurl) { |
| 452 url_bar_->SetURL(gurl); | 452 url_bar_->SetURL(gurl); |
| 453 } | 453 } |
| 454 | 454 |
| 455 void UiSceneManager::SetSecurityLevel(int level) { | 455 void UiSceneManager::SetSecurityLevel(security_state::SecurityLevel level) { |
| 456 url_bar_->SetSecurityLevel(level); | 456 url_bar_->SetSecurityLevel(level); |
| 457 } | 457 } |
| 458 | 458 |
| 459 void UiSceneManager::SetLoading(bool loading) { | 459 void UiSceneManager::SetLoading(bool loading) { |
| 460 loading_indicator_->SetLoading(loading); | 460 loading_indicator_->SetLoading(loading); |
| 461 } | 461 } |
| 462 | 462 |
| 463 void UiSceneManager::SetLoadProgress(float progress) { | 463 void UiSceneManager::SetLoadProgress(float progress) { |
| 464 loading_indicator_->SetLoadProgress(progress); | 464 loading_indicator_->SetLoadProgress(progress); |
| 465 } | 465 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 476 | 476 |
| 477 void UiSceneManager::OnCloseButtonClicked() { | 477 void UiSceneManager::OnCloseButtonClicked() { |
| 478 browser_->ExitCct(); | 478 browser_->ExitCct(); |
| 479 } | 479 } |
| 480 | 480 |
| 481 int UiSceneManager::AllocateId() { | 481 int UiSceneManager::AllocateId() { |
| 482 return next_available_id_++; | 482 return next_available_id_++; |
| 483 } | 483 } |
| 484 | 484 |
| 485 } // namespace vr_shell | 485 } // namespace vr_shell |
| OLD | NEW |