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

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: 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);
tiborg 2017/05/09 15:00:36 What about void SetOnBackButtonClickedHandler(cons
private:
UiTexture* GetTexture() const override;
std::unique_ptr<UrlBarTexture> texture_;
+ base::Callback<void()> back_button_callback_;
+ bool enabled_ = false;
DISALLOW_COPY_AND_ASSIGN(UrlBar);
};

Powered by Google App Engine
This is Rietveld 408576698