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

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

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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_elements/close_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_elements/close_button.h
diff --git a/chrome/browser/android/vr_shell/ui_elements/close_button.h b/chrome/browser/android/vr_shell/ui_elements/close_button.h
index 682364d8d89bfcf7025bc38578fe325435f02c99..14d036b3865822e7691e55f6b48d9fbfa6717a67 100644
--- a/chrome/browser/android/vr_shell/ui_elements/close_button.h
+++ b/chrome/browser/android/vr_shell/ui_elements/close_button.h
@@ -22,17 +22,18 @@ class CloseButton : public TexturedElement {
~CloseButton() override;
void OnHoverLeave() override;
- void OnHoverEnter(gfx::PointF position) override;
- void OnButtonDown(gfx::PointF position) override;
- void OnButtonUp(gfx::PointF position) override;
+ void OnHoverEnter(const gfx::PointF& position) 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;
private:
UiTexture* GetTexture() const override;
- void OnStateUpdated();
+ void OnStateUpdated(const gfx::PointF& position);
std::unique_ptr<CloseButtonTexture> texture_;
bool down_ = false;
- bool hover_ = false;
base::Callback<void()> click_handler_;
DISALLOW_COPY_AND_ASSIGN(CloseButton);
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_elements/close_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698