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..9e063dfb91e2d9b3dbccef25a2aba9fec1ec7cf8 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_->SetDrawFlags(UrlBarTexture::FLAG_HOVER)) |
+ return; |
Update(); |
} |
void UrlBar::OnHoverLeave() { |
- texture_->SetHover(false); |
+ if (!texture_->SetDrawFlags(0)) |
+ return; |
Update(); |
} |
-void UrlBar::OnButtonUp() { |
+void UrlBar::OnButtonUp(gfx::PointF position) { |
back_button_callback_.Run(); |
} |