| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 void UiSceneManager::SetIsExiting() { | 408 void UiSceneManager::SetIsExiting() { |
| 409 if (scene_->is_exiting()) | 409 if (scene_->is_exiting()) |
| 410 return; | 410 return; |
| 411 scene_->set_is_exiting(); | 411 scene_->set_is_exiting(); |
| 412 ConfigureScene(); | 412 ConfigureScene(); |
| 413 } | 413 } |
| 414 | 414 |
| 415 void UiSceneManager::SetHistoryButtonsEnabled(bool can_go_back, | 415 void UiSceneManager::SetHistoryButtonsEnabled(bool can_go_back, |
| 416 bool can_go_forward) {} | 416 bool can_go_forward) {} |
| 417 | 417 |
| 418 void UiSceneManager::OnCloseButtonClicked() {} | 418 void UiSceneManager::OnCloseButtonClicked() { |
| 419 browser_->ExitCct(); |
| 420 } |
| 419 | 421 |
| 420 int UiSceneManager::AllocateId() { | 422 int UiSceneManager::AllocateId() { |
| 421 return next_available_id_++; | 423 return next_available_id_++; |
| 422 } | 424 } |
| 423 | 425 |
| 424 } // namespace vr_shell | 426 } // namespace vr_shell |
| OLD | NEW |