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

Unified Diff: chrome/browser/android/vr_shell/textures/insecure_content_permanent_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_permanent_texture.h
diff --git a/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.h b/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.h
index d492b1d58dc5dcff8a906fe3daf3f67f525931ee..55f774590bf3c925b070354d7afd58ff602d3394 100644
--- a/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.h
+++ b/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.h
@@ -9,17 +9,17 @@
namespace vr_shell {
-class InsecureContentPermanentTexture : public UITexture {
+class InsecureContentPermanentTexture : public UiTexture {
public:
- InsecureContentPermanentTexture(int texture_handle, int texture_size);
+ InsecureContentPermanentTexture();
~InsecureContentPermanentTexture() 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_;
- int width_;
+ gfx::SizeF size_;
};
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698