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

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

Issue 2889693005: Stay in VR while showing DOFF flow and connect CCT exit button to this. (Closed)
Patch Set: rebase Created 3 years, 7 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698