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

Unified Diff: chrome/browser/android/vr_shell/ui_elements/url_bar.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/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 5c28acb88b90f1a27b97a678f5bd1cc7666fd370..77ee9784191365c437c420653afdf59f478f7a26 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.h
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.h
@@ -22,6 +22,8 @@ class UrlBarTexture;
class UrlBar : public TexturedElement {
public:
UrlBar(int preferred_width,
+ const base::Callback<void()>& back_button_callback,
+ const base::Callback<void()>& security_icon_callback,
const base::Callback<void(UiUnsupportedMode)>& failure_callback);
~UrlBar() override;
@@ -38,7 +40,6 @@ class UrlBar : public TexturedElement {
void SetHistoryButtonsEnabled(bool can_go_back);
void SetURL(const GURL& gurl);
void SetSecurityLevel(security_state::SecurityLevel level);
- void SetBackButtonCallback(const base::Callback<void()>& callback);
private:
void UpdateTexture() override;
@@ -47,9 +48,11 @@ class UrlBar : public TexturedElement {
std::unique_ptr<UrlBarTexture> texture_;
base::Callback<void()> back_button_callback_;
+ base::Callback<void()> security_icon_callback_;
bool enabled_ = false;
bool can_go_back_ = false;
bool down_ = false;
+ bool security_icon_down_ = false;
base::TimeTicks last_begin_frame_time_;
base::TimeTicks last_update_time_;

Powered by Google App Engine
This is Rietveld 408576698