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

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: Address comments 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..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();
}
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698