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

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

Issue 2906403002: Disable back button when stack is empty (Closed)
Patch Set: nit 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 2a6d4b81f75cb2c2378a3a0275ef6467314d829b..bd646b176c9c698abcb9f79384290bfb275a1087 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -39,6 +39,7 @@ class UrlBarTexture : public UiTexture {
gfx::SizeF GetDrawnSize() const override;
void SetURL(const GURL& gurl);
+ void SetHistoryButtonsEnabled(bool can_go_back);
void SetSecurityLevel(security_state::SecurityLevel level);
bool HitsBackButton(const gfx::PointF& position) const;
@@ -65,6 +66,7 @@ class UrlBarTexture : public UiTexture {
gfx::SizeF size_;
bool hovered_ = false;
bool pressed_ = false;
+ bool can_go_back_ = false;
GURL gurl_;
security_state::SecurityLevel security_level_;
« no previous file with comments | « chrome/browser/android/vr_shell/color_scheme.cc ('k') | chrome/browser/android/vr_shell/textures/url_bar_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698