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

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

Issue 2907153003: VR: Add URL bar security-related coloring and emphasis. (Closed)
Patch Set: 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
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/color_scheme.h" 9 #include "chrome/browser/android/vr_shell/color_scheme.h"
10 #include "chrome/browser/android/vr_shell/textures/close_button_texture.h" 10 #include "chrome/browser/android/vr_shell/textures/close_button_texture.h"
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 } 417 }
418 418
419 void UiSceneManager::OnBackButtonClicked() { 419 void UiSceneManager::OnBackButtonClicked() {
420 browser_->NavigateBack(); 420 browser_->NavigateBack();
421 } 421 }
422 422
423 void UiSceneManager::SetURL(const GURL& gurl) { 423 void UiSceneManager::SetURL(const GURL& gurl) {
424 url_bar_->SetURL(gurl); 424 url_bar_->SetURL(gurl);
425 } 425 }
426 426
427 void UiSceneManager::SetSecurityLevel(int level) { 427 void UiSceneManager::SetSecurityLevel(security_state::SecurityLevel level) {
428 url_bar_->SetSecurityLevel(level); 428 url_bar_->SetSecurityLevel(level);
429 } 429 }
430 430
431 void UiSceneManager::SetLoading(bool loading) { 431 void UiSceneManager::SetLoading(bool loading) {
432 loading_indicator_->SetLoading(loading); 432 loading_indicator_->SetLoading(loading);
433 } 433 }
434 434
435 void UiSceneManager::SetLoadProgress(float progress) { 435 void UiSceneManager::SetLoadProgress(float progress) {
436 loading_indicator_->SetLoadProgress(progress); 436 loading_indicator_->SetLoadProgress(progress);
437 } 437 }
(...skipping 15 matching lines...) Expand all
453 int UiSceneManager::AllocateId() { 453 int UiSceneManager::AllocateId() {
454 return next_available_id_++; 454 return next_available_id_++;
455 } 455 }
456 456
457 const ColorScheme& UiSceneManager::color_scheme() const { 457 const ColorScheme& UiSceneManager::color_scheme() const {
458 return ColorScheme::GetColorScheme(fullscreen_ ? ColorScheme::kModeFullscreen 458 return ColorScheme::GetColorScheme(fullscreen_ ? ColorScheme::kModeFullscreen
459 : ColorScheme::kModeNormal); 459 : ColorScheme::kModeNormal);
460 } 460 }
461 461
462 } // namespace vr_shell 462 } // namespace vr_shell
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/ui_scene_manager.h ('k') | chrome/browser/android/vr_shell/vr_gl_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698