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

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

Issue 2885433003: VR: Implement Omnibox input targeting. (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.h
diff --git a/chrome/browser/android/vr_shell/ui_elements/url_bar.h b/chrome/browser/android/vr_shell/ui_elements/url_bar.h
index 75967e3c7c8681d029c998cdd2b71ca1dc869cc6..4c83ca1c159cd220cbcb410809bc479e39fe8a8d 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.h
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.h
@@ -24,8 +24,12 @@ class UrlBar : public TexturedElement {
void OnHoverEnter(const gfx::PointF& position) override;
void OnHoverLeave() override;
- void OnBeginFrame(const base::TimeTicks& begin_frame_time) override;
+ void OnMove(const gfx::PointF& position) override;
+ void OnButtonDown(const gfx::PointF& position) override;
void OnButtonUp(const gfx::PointF& position) override;
+ bool HitTest(const gfx::PointF& point) const override;
+
+ void OnBeginFrame(const base::TimeTicks& begin_frame_time) override;
void SetEnabled(bool enabled) override;
void SetURL(const GURL& gurl);
@@ -35,9 +39,12 @@ class UrlBar : public TexturedElement {
private:
void UpdateTexture() override;
UiTexture* GetTexture() const override;
+ void OnStateUpdated(const gfx::PointF& position);
+
std::unique_ptr<UrlBarTexture> texture_;
base::Callback<void()> back_button_callback_;
bool enabled_ = false;
+ bool down_ = false;
base::TimeTicks last_begin_frame_time_;
base::TimeTicks last_update_time_;
« no previous file with comments | « chrome/browser/android/vr_shell/textures/url_bar_texture.cc ('k') | chrome/browser/android/vr_shell/ui_elements/url_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698