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

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

Issue 2906403002: Disable back button when stack is empty (Closed)
Patch Set: nit Created 3 years, 6 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
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui_interface.h" 9 #include "chrome/browser/android/vr_shell/ui_interface.h"
10 #include "chrome/browser/android/vr_shell/ui_scene.h" 10 #include "chrome/browser/android/vr_shell/ui_scene.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 task_runner()->PostTask( 145 task_runner()->PostTask(
146 FROM_HERE, base::Bind(&UiSceneManager::SetIncognito, weak_scene_manager_, 146 FROM_HERE, base::Bind(&UiSceneManager::SetIncognito, weak_scene_manager_,
147 incognito)); 147 incognito));
148 } 148 }
149 149
150 void VrGLThread::SetHistoryButtonsEnabled(bool can_go_back, 150 void VrGLThread::SetHistoryButtonsEnabled(bool can_go_back,
151 bool can_go_forward) { 151 bool can_go_forward) {
152 WaitUntilThreadStarted(); 152 WaitUntilThreadStarted();
153 task_runner()->PostTask( 153 task_runner()->PostTask(
154 FROM_HERE, base::Bind(&UiSceneManager::SetHistoryButtonsEnabled, 154 FROM_HERE, base::Bind(&UiSceneManager::SetHistoryButtonsEnabled,
155 weak_scene_manager_, can_go_forward, can_go_back)); 155 weak_scene_manager_, can_go_back, can_go_forward));
156 } 156 }
157 157
158 void VrGLThread::SetLoadProgress(float progress) { 158 void VrGLThread::SetLoadProgress(float progress) {
159 WaitUntilThreadStarted(); 159 WaitUntilThreadStarted();
160 task_runner()->PostTask(FROM_HERE, 160 task_runner()->PostTask(FROM_HERE,
161 base::Bind(&UiSceneManager::SetLoadProgress, 161 base::Bind(&UiSceneManager::SetLoadProgress,
162 weak_scene_manager_, progress)); 162 weak_scene_manager_, progress));
163 } 163 }
164 164
165 void VrGLThread::SetLoading(bool loading) { 165 void VrGLThread::SetLoading(bool loading) {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 weak_scene_manager_)); 218 weak_scene_manager_));
219 } 219 }
220 220
221 void VrGLThread::CleanUp() { 221 void VrGLThread::CleanUp() {
222 scene_manager_.reset(); 222 scene_manager_.reset();
223 vr_shell_gl_.reset(); 223 vr_shell_gl_.reset();
224 scene_.reset(); 224 scene_.reset();
225 } 225 }
226 226
227 } // namespace vr_shell 227 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698