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

Unified Diff: chrome/browser/android/vr_shell/ui_elements/url_bar.cc

Issue 2960903002: VR: Use ToolbarModel to drive VR URL bar state. (Closed)
Patch Set: Update toolbar build file to include vector icons for Android. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/ui_elements/url_bar.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
index 3ad755b4701087f547456b03465d12756e9acf39..40dede3c1bd3f4bfde5d187eb32797ab3be602f6 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
@@ -88,8 +88,8 @@ void UrlBar::SetEnabled(bool enabled) {
set_visible(enabled);
}
-void UrlBar::SetURL(const GURL& gurl) {
- texture_->SetURL(gurl);
+void UrlBar::SetToolbarState(const ToolbarState& state) {
+ texture_->SetToolbarState(state);
}
void UrlBar::SetHistoryButtonsEnabled(bool can_go_back) {
@@ -97,11 +97,6 @@ void UrlBar::SetHistoryButtonsEnabled(bool can_go_back) {
texture_->SetHistoryButtonsEnabled(can_go_back_);
}
-void UrlBar::SetSecurityInfo(security_state::SecurityLevel level,
- bool malware) {
- texture_->SetSecurityInfo(level, malware);
-}
-
void UrlBar::OnStateUpdated(const gfx::PointF& position) {
const bool hovered = texture_->HitsBackButton(position);
const bool pressed = hovered ? down_ : false;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.h ('k') | chrome/browser/android/vr_shell/ui_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698