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

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

Issue 2902043005: [vr] Add incognito coloring (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 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 332d73b7a95068b8b90cd91db39e7b47e5f17b64..a8ffa3f39a5e4a423ca290c6f641df1611d51d8a 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
@@ -90,6 +90,10 @@ void UrlBar::SetBackButtonCallback(const base::Callback<void()>& callback) {
back_button_callback_ = callback;
}
+void UrlBar::SetIncognito(bool incognito) {
+ texture_->SetIncognito(incognito);
+}
+
void UrlBar::OnStateUpdated(const gfx::PointF& position) {
const bool hovered = texture_->HitsBackButton(position);
const bool pressed = hovered ? down_ : false;

Powered by Google App Engine
This is Rietveld 408576698