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

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

Issue 2902393002: [vr] Bail on unhandled code points. (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/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 c6ebf975f196f75fa63d6693d17f01f197c58518..379ce4535f298af451719c7d4c176b50803b8da8 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -8,6 +8,7 @@
#include <memory>
#include <vector>
+#include "base/callback.h"
#include "base/macros.h"
#include "chrome/browser/android/vr_shell/textures/ui_texture.h"
#include "url/gurl.h"
@@ -26,7 +27,7 @@ class UrlBarTexture : public UiTexture {
FLAG_BACK_DOWN = 1 << 1,
};
- UrlBarTexture();
+ explicit UrlBarTexture(const base::Callback<void()>& failure_callback);
~UrlBarTexture() override;
gfx::Size GetPreferredTextureSize(int width) const override;
gfx::SizeF GetDrawnSize() const override;
@@ -52,6 +53,7 @@ class UrlBarTexture : public UiTexture {
GURL gurl_;
GURL last_drawn_gurl_;
std::vector<std::unique_ptr<gfx::RenderText>> gurl_render_texts_;
+ base::Callback<void()> failure_callback_;
DISALLOW_COPY_AND_ASSIGN(UrlBarTexture);
};

Powered by Google App Engine
This is Rietveld 408576698