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

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

Issue 2834543006: Hook up insecure content warnings for http webVR presentation. (Closed)
Patch Set: rebase Created 3 years, 8 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/insecure_content_transient_texture.h
diff --git a/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.h b/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.h
index 9542a64114269b89c21d8c5785419b8767f43b46..216f94df745e933821ac798dfd99d4a765d798ff 100644
--- a/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.h
+++ b/chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.h
@@ -9,16 +9,17 @@
namespace vr_shell {
-class InsecureContentTransientTexture : public UITexture {
+class InsecureContentTransientTexture : public UiTexture {
public:
- InsecureContentTransientTexture(int texture_handle, int texture_size);
+ InsecureContentTransientTexture();
~InsecureContentTransientTexture() override;
+ gfx::Size GetPreferredTextureSize(int width) const override;
+ gfx::SizeF GetDrawnSize() const override;
private:
- void Draw(gfx::Canvas* canvas) override;
- void SetSize() override;
+ void Draw(gfx::Canvas* canvas, const gfx::Size& texture_size) override;
- int height_;
+ gfx::SizeF size_;
};
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698