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

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

Issue 2872773002: VR: Render the current URL and security level on the URL bar. (Closed)
Patch Set: Revert the inclusion of the lock icon; will re-add when moved to UI. 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/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 526c085dcc495548681eb8388e77847c50bc49e5..8c596f70e8892c4cba5018b763c16b52d006b829 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.h
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.h
@@ -7,6 +7,7 @@
#include <memory>
+#include "base/callback.h"
#include "base/macros.h"
#include "chrome/browser/android/vr_shell/ui_elements/textured_element.h"
#include "url/gurl.h"
@@ -22,11 +23,17 @@ class UrlBar : public TexturedElement {
void OnHoverEnter() override;
void OnHoverLeave() override;
+ void OnButtonUp() override;
+ void SetEnabled(bool enabled);
void SetURL(const GURL& gurl);
+ void SetSecurityLevel(int level);
+ void SetBackButtonCallback(const base::Callback<void()>& callback);
private:
UiTexture* GetTexture() const override;
std::unique_ptr<UrlBarTexture> texture_;
+ base::Callback<void()> back_button_callback_;
+ bool enabled_ = false;
DISALLOW_COPY_AND_ASSIGN(UrlBar);
};
« no previous file with comments | « chrome/browser/android/vr_shell/textures/url_bar_texture.cc ('k') | chrome/browser/android/vr_shell/ui_elements/url_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698