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

Unified Diff: chrome/browser/android/vr_shell/textures/url_bar_texture.h

Issue 2913633002: [vr] Clicking on the security icon should prompt the user to bail out of VR (Closed)
Patch Set: rebase Created 3 years, 6 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/textures/url_bar_texture.h
diff --git a/chrome/browser/android/vr_shell/textures/url_bar_texture.h b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
index a077e733ab3e55f0b46c9ea60a2dbade7f8bbf7d..e4e662611ff73dec6691f896d581a0cc01ef125e 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -44,6 +44,7 @@ class UrlBarTexture : public UiTexture {
bool HitsBackButton(const gfx::PointF& position) const;
bool HitsUrlBar(const gfx::PointF& position) const;
+ bool HitsSecurityIcon(const gfx::PointF& position) const;
void SetHovered(bool hovered);
void SetPressed(bool pressed);
@@ -61,6 +62,7 @@ class UrlBarTexture : public UiTexture {
bool HitsTransparentRegion(const gfx::PointF& meters, bool left) const;
void RenderUrl(const gfx::Size& texture_size, const gfx::Rect& bounds);
void OnSetMode() override;
+ gfx::PointF SecurityIconPositionMeters() const;
gfx::SizeF size_;
bool hovered_ = false;

Powered by Google App Engine
This is Rietveld 408576698