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

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

Issue 2955023002: VR: Factor transient timing out of UiSceneManager. (Closed)
Patch Set: Rebase again onto ExclusivePresentationToast class/file rename. 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/transient_url_bar.h
diff --git a/chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h b/chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h
index da311bfb81a5e0225173af3a23bd50c91277e36d..b28d166221e17e4a4cee41fbdc77e745aabb1450 100644
--- a/chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h
+++ b/chrome/browser/android/vr_shell/ui_elements/transient_url_bar.h
@@ -11,6 +11,7 @@
#include "base/macros.h"
#include "base/time/time.h"
#include "chrome/browser/android/vr_shell/ui_elements/textured_element.h"
+#include "chrome/browser/android/vr_shell/ui_elements/transience_manager.h"
#include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
#include "components/security_state/core/security_state.h"
#include "url/gurl.h"
@@ -26,15 +27,19 @@ class TransientUrlBar : public TexturedElement {
public:
TransientUrlBar(
int preferred_width,
+ const base::TimeDelta& timeout,
const base::Callback<void(UiUnsupportedMode)>& failure_callback);
~TransientUrlBar() override;
+ void SetEnabled(bool enabled) override;
+
void SetToolbarState(const ToolbarState& state);
private:
UiTexture* GetTexture() const override;
std::unique_ptr<UrlBarTexture> texture_;
+ TransienceManager transience_;
DISALLOW_COPY_AND_ASSIGN(TransientUrlBar);
};

Powered by Google App Engine
This is Rietveld 408576698