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

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

Issue 2878543002: Refactor VR Shell Input. Locks input to click/scroll targets. (Closed)
Patch Set: Address comments 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/ui_texture.h
diff --git a/chrome/browser/android/vr_shell/textures/ui_texture.h b/chrome/browser/android/vr_shell/textures/ui_texture.h
index f1529b3dd8ccc4de94ff1d78fe2854354c8f5a1e..cfe1fc992092023c2f558ab8daf5a8075ff337ee 100644
--- a/chrome/browser/android/vr_shell/textures/ui_texture.h
+++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
@@ -27,6 +27,9 @@ class UiTexture {
void DrawAndLayout(SkCanvas* canvas, const gfx::Size& texture_size);
virtual gfx::Size GetPreferredTextureSize(int maximum_width) const = 0;
virtual gfx::SizeF GetDrawnSize() const = 0;
+ // Returns true if the state changed.
+ bool SetDrawFlags(int draw_flags);
+ int GetDrawFlags() { return draw_flags_; }
protected:
virtual void Draw(SkCanvas* canvas, const gfx::Size& texture_size) = 0;
@@ -34,6 +37,9 @@ class UiTexture {
static bool IsRTL();
static gfx::FontList GetDefaultFontList(int size);
static gfx::FontList GetFontList(int size, base::string16 text);
+
+ private:
+ int draw_flags_ = 0;
};
} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698