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

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

Issue 2914543002: [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 92e40f679864212f36e99f537d007a3828a5298a..0d160e252dd0cb3d3a8f5892b4ef8fe37650263c 100644
--- a/chrome/browser/android/vr_shell/textures/url_bar_texture.h
+++ b/chrome/browser/android/vr_shell/textures/url_bar_texture.h
@@ -8,8 +8,10 @@
#include <memory>
#include <vector>
+#include "base/callback.h"
#include "base/macros.h"
#include "chrome/browser/android/vr_shell/textures/ui_texture.h"
+#include "chrome/browser/android/vr_shell/ui_unsupported_mode.h"
#include "components/security_state/core/security_state.h"
#include "url/gurl.h"
@@ -29,7 +31,8 @@ class UrlBarTexture : public UiTexture {
FLAG_BACK_DOWN = 1 << 1,
};
- UrlBarTexture();
+ explicit UrlBarTexture(
+ const base::Callback<void(UiUnsupportedMode)>& failure_callback);
~UrlBarTexture() override;
gfx::Size GetPreferredTextureSize(int width) const override;
gfx::SizeF GetDrawnSize() const override;
@@ -65,6 +68,7 @@ class UrlBarTexture : public UiTexture {
std::unique_ptr<gfx::RenderText> url_render_text_;
GURL last_drawn_gurl_;
security_state::SecurityLevel last_drawn_security_level_;
+ base::Callback<void(UiUnsupportedMode)> failure_callback_;
DISALLOW_COPY_AND_ASSIGN(UrlBarTexture);
};
« no previous file with comments | « chrome/browser/android/vr_shell/textures/ui_texture.cc ('k') | chrome/browser/android/vr_shell/textures/url_bar_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698