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

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

Issue 2878083003: VR Shell: Allow UI elements to determine hit testing. (Closed)
Patch Set: Remove unrelated changes 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 94c068dc587c0f39f23e611172be888c55776174..8bca9056fdc2ff98c1f8fb588d7e1d5cf61b2873 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
@@ -34,7 +34,7 @@ UiTexture* UrlBar::GetTexture() const {
return texture_.get();
}
-void UrlBar::OnHoverEnter(gfx::PointF position) {
+void UrlBar::OnHoverEnter(const gfx::PointF& position) {
if (!texture_->SetDrawFlags(UrlBarTexture::FLAG_HOVER))
return;
UpdateTexture();
@@ -46,7 +46,7 @@ void UrlBar::OnHoverLeave() {
UpdateTexture();
}
-void UrlBar::OnButtonUp(gfx::PointF position) {
+void UrlBar::OnButtonUp(const gfx::PointF& position) {
back_button_callback_.Run();
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.h ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698