Chromium Code Reviews| 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); |
| }; |