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

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: . 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/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 bd646b176c9c698abcb9f79384290bfb275a1087..770acd9a597f1add89303b1a88afe8dde5f72ea3 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);
@@ -62,6 +63,9 @@ class UrlBarTexture : public UiTexture {
void RenderUrl(const gfx::Size& texture_size, const gfx::Rect& bounds);
void OnSetMode() override;
const ColorScheme& color_scheme() const;
+ // Returns the location of the security icon relative to the url bar in
cjgrant 2017/06/02 04:16:36 This comment doesn't add much as it's a private me
ymalik 2017/06/02 21:14:31 Done.
+ // meters.
+ gfx::PointF security_icon_position() const;
gfx::SizeF size_;
bool hovered_ = false;

Powered by Google App Engine
This is Rietveld 408576698