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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 } | 401 } |
402 | 402 |
403 void UiSceneManager::OnBackButtonClicked() { | 403 void UiSceneManager::OnBackButtonClicked() { |
404 browser_->NavigateBack(); | 404 browser_->NavigateBack(); |
405 } | 405 } |
406 | 406 |
407 void UiSceneManager::SetURL(const GURL& gurl) { | 407 void UiSceneManager::SetURL(const GURL& gurl) { |
408 url_bar_->SetURL(gurl); | 408 url_bar_->SetURL(gurl); |
409 } | 409 } |
410 | 410 |
411 void UiSceneManager::SetSecurityLevel(int level) { | 411 void UiSceneManager::SetSecurityLevel(security_state::SecurityLevel level) { |
412 url_bar_->SetSecurityLevel(level); | 412 url_bar_->SetSecurityLevel(level); |
413 } | 413 } |
414 | 414 |
415 void UiSceneManager::SetLoading(bool loading) { | 415 void UiSceneManager::SetLoading(bool loading) { |
416 loading_indicator_->SetLoading(loading); | 416 loading_indicator_->SetLoading(loading); |
417 } | 417 } |
418 | 418 |
419 void UiSceneManager::SetLoadProgress(float progress) { | 419 void UiSceneManager::SetLoadProgress(float progress) { |
420 loading_indicator_->SetLoadProgress(progress); | 420 loading_indicator_->SetLoadProgress(progress); |
421 } | 421 } |
(...skipping 10 matching lines...) Expand all 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 |