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

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

Issue 2902043005: [vr] Add incognito coloring (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/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 0bde0005822998ef5d5519c89a65d25d4ad3ee6a..eef85ceef0c038e2f2e2d1a579e18413972764ff 100644
--- a/chrome/browser/android/vr_shell/textures/ui_texture.h
+++ b/chrome/browser/android/vr_shell/textures/ui_texture.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
+#include "chrome/browser/android/vr_shell/color_scheme.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
@@ -39,6 +40,8 @@ class UiTexture {
bool dirty() const { return dirty_; }
+ void SetMode(ColorScheme::Mode mode);
+
protected:
enum TextAlignment {
kTextAlignmentNone,
@@ -54,6 +57,9 @@ class UiTexture {
virtual void Draw(SkCanvas* canvas, const gfx::Size& texture_size) = 0;
+ virtual void OnSetMode();
+ ColorScheme::Mode mode() const { return mode_; }
+
// Prepares a set of RenderText objects with the given color and fonts.
// Attempts to fit the text within the provided size. |flags| specifies how
// the text should be rendered. If multiline is requested and provided height
@@ -85,6 +91,7 @@ class UiTexture {
private:
bool dirty_ = true;
+ ColorScheme::Mode mode_ = ColorScheme::kModeNormal;
DISALLOW_COPY_AND_ASSIGN(UiTexture);
};
« no previous file with comments | « chrome/browser/android/vr_shell/color_scheme.cc ('k') | chrome/browser/android/vr_shell/textures/ui_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698