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

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

Issue 2878543002: Refactor VR Shell Input. Locks input to click/scroll targets. (Closed)
Patch Set: 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 87deb9213c874d4610fbbf9601d7c5540650af16..d26a1f10dd09cf25d6131f52098d4c479feed24e 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
@@ -19,17 +19,19 @@ UiTexture* UrlBar::GetTexture() const {
return texture_.get();
}
-void UrlBar::OnHoverEnter() {
- texture_->SetHover(true);
+void UrlBar::OnHoverEnter(gfx::PointF position) {
+ if (!texture_->Update(UrlBarTexture::FLAG_HOVER))
+ return;
Update();
}
void UrlBar::OnHoverLeave() {
- texture_->SetHover(false);
+ if (!texture_->Update(0))
+ return;
Update();
}
-void UrlBar::OnButtonUp() {
+void UrlBar::OnButtonUp(gfx::PointF position) {
back_button_callback_.Run();
}

Powered by Google App Engine
This is Rietveld 408576698